question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How do you change the chart type at runtime ?

See original GitHub issue

I want to be able to do something like in this demo image

But I want to do it without recreating the chart object every time. So far I have tried doing : (Assuming initially the chart was a bar graph)

chart.type = 'donut' chart.draw(true)

Does not seem to work. Is there any API to do this? Also, many api’s that are talked about in the Issues section are not available in the docs.

One more thing. Is there any way to change the font-size of the labels and the title in the chart?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
scmmishracommented, Jul 16, 2020

Yeah, the Pie and the donut charts support only hover for the moment … I hoped that the data-selected event would just work for the AggregateCharts as well.

I’ll add this to v2 roadmap!

I also wanted to ask you, how much of Frappe charts supports IE at the moment

I haven’t tried it on IE. A good guess would say it works fairly well on IE 9 and above. However, animations are done through SMIL which is not supported by IE

Hope most of the customizations and events for all chart types makes it to V2

Yes, hoping to make things more extensible, especially overriding defaults. Allowing customizations is a slippery slope, however it’s understandable the most folks don’t want to conform to the default opinions.

The new defaults are expected to be more modern, most folks will love the defaults.

For instance this is how percentage chart may look like

image

This is a mock image

0reactions
TheCelebrimborcommented, Jul 27, 2020

@scmmishra Sure.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change Chart Type at Runtime - FusionCharts
This article focuses on how you can change the chart type of the chart at runtime using FusionCharts PHP wrapper. The chart types...
Read more >
VB.NET CHARTTYPE RUNTIME CHANGE - MSDN - Microsoft
To change the chart dynamically you simply draw it again with the new settings. Option Strict On Imports System.Windows.
Read more >
Change Chart Type at runtime which is bind with ...
I am developing window application , in which i am using pivot grid and chartControl(DevExpress.XtraCharts.ChartControl) for Reporting and ...
Read more >
How to set asp net chart control ChartType property dynamically
Text version of the videohttp://csharp-video-tutorials.blogspot.com/2014/10/how-to- set -aspnet- chart -control.htmlHealthy diet is very ...
Read more >
change chart type at runtime - Oracle Communities
Hello, You can't change the chart type but you can have two charts on the same page and show or hide the regions...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found