Anychart zooming on non-map chart types - anychart

Working on a project using AnyChart and I'm unable to get zooming to work on any non-map type charts (specifically working with scatterplot.) It doesn't seem like they support anything other than a scroll bar as far as zooming goes for charts like scatterplot.
Does anyone have any clever solutions to be able to add zooming to these charts?

Related

How to draw a complex Gantt chart in react?

I am trying to build a gantt chart, wherein a single row can have multiple horizontal boxes. Something as shown in the below image.
image-1.
I have explored following react packages, but seems no one is enough to draw multiple horizontal boxes in a single row as shown in the images.
Packages:
react-google-charts
frappe-gantt-react
react-gantt
Please do suggest some solution. Any kind of help is appreciated.
There is a superset of Gantt chart, called Timeline chart. That would help one to implement above mentioned chart.

Implement this chart in react native

In the following chart:
The white spot moves along the black line.
I can make background bars, but curve live and white spot seems difficult.
I already use react-native-svg-chart for other charts but IDK that I can make this chart with this library.
How shall I implement this chart in react native?

Silverlight Toolkit Pie Chart Add Labels

I have been working with Silverlight for some time now but this is my first experience with the charting capability provided by the silverlight toolkit. Basically I am trying to create a pie chart that contains labels for each slice of the pie. The labels can be inside the pie piece itself or outside it makes very little difference to me. My data set is very simple. I have a Result class that contains 2 properties, a name and a count and I am using that as the source for the pie chart.
I have tried to google this but most of the results I get pertain to telerik or other 3rd party controls.
Can someone please share there wisdom on how to accomplish this? Thanks.

Winforms and drawing complicated charts

I need to draw complicated chart (something like in the picture).
As I am developing WinForms app, I would like to show that chart in my window. What I am looking for is some library that would allow me to do that. I found ChartControl, but it seems to be a bit primitive and insufficient for my needs.
Do you know some libraries that would let me draw complex charts? Compatibility with winForms is not priority, but I would like to generate that chart using C#.
From within WinForms you can use the System.Drawing namespace to do your own drawing.
For a chart as complex as this, there is a great likelihood that you will be able to write your own code to draw it in less time than it will take you to learn some existing library (which was built primarily for bar charts) and coerce it to draw such a chart for you.

Zooming on Silverlight Toolkit charts?

I need to enable zooming on the Silverlight charts I use - at the moment this is Silverlight Toolkit. As far as I've understood the SL Toolkit charts don't support zooming, however I'm looking into implementing this functionality. So far I haven't managed to get far: applying ScaleTransforms to the Series elements doesn't work as expected.
Can anyone provide me with example code on implementing zooming in Silverlight Toolkit?
I've previously looked into implementing zooming on the Silverlight Toolkit charts, however failed because of (probably) the following reasons:
Silverlight Toolkit charts don't seem to have been designed to be able to extend for zooming. There are no hooks that you could easily attack some zooming logic to, if you want to create zooming on them, you have to go much deeer.
The simplest way of implementing zooming is using ScaleTransform and RenderTransform to elements. In case of Silverlight Toolkit you want to apply this to the series. However just calculating the correct ScaleTransform and OffsetTransform are difficult enough
When scaling, you don't want everything to scale. If you zoom in 4x on a line series with points on it, you don't want the line to be 4x thicker and the points to be 4x larger. This means that even if you did implement applying the ScaleTransforms and RenderTransforms correctly, all you would get is a magnifying glass, which is still far from ideal.
After a few hours I gave up on adding this kind of support to the SL toolkit charts and instead looked for other components that support zooming and have a decent API to deal with it. These are the components I've found (though I'm sure there's more):
Visiblox Charts free version: it has a nice API and implenting zooming takes only a few lines of XAML according to this blog post (also see a post on a comparison with SL toolkit charts). Full disclosure: I have been heavily involved in development of this library.
Infragistics xamWebChart also claim to have support for zoom in the premium version of their charts
Telerik RadCharts also seem to allow zooming based on this example - though it's not clear to me whether you'd have to implement this functionality yourself.
Summing it up, I think the easiest way for you to go it with a component that already has zooming implemented - from my experience it would take a lot of investment to add proper zooming + panning to Silverlight Toolkit charts.
You should take a look at user610173's blog post. Specifically, download the full example code here: http://slchartzoomandpan.codeplex.com/SourceControl/list/changesets Very helpful!
Adding to Gergely Orozy comment about Telerik:
You can easily add the Zoom functionality with the following XAML.
<charting:ChartArea.ZoomScrollSettingsX>
<charting:ZoomScrollSettings ScrollMode="ScrollAndZoom" MinZoomRange="0.005"/>
</charting:ChartArea.ZoomScrollSettingsX>
You can check out a demo by clicking here and the source code is also available on that same tab.

Resources