The 2nd line doesn’t show the markers.
Setting markerSize to 0 hides the marker. Setting it to value higher than 0 should work fine in this case. Please take a look at this updated JSFiddle.
Click the line will trigger the on/off event from the line itself and/or from events outside, is it possible? (need to support multiple lines showing the data)
Clicking on line is not possible as of now. However you can hide / unhide dataseries by setting visible property as shown in this JSFiddle.
Can we use an icon rather than the default markers? Can we provide as many custom icons as we want to?
It’s not possible to add image/icons instead of marker. However you can position image on top of chart as shown in this JSFiddle.
Can you kindly create JSFiddle with your use-case and share it with us so that we can understand the scenario better and help you out?
—
Vishwas R
Team CanvasJS
Sorry, it’s not possible to control first & last label shown in axis. However, you can add striplines to show labels at viewportMinimum & viewportMaximum as shown in this JSFiddle.
—
Vishwas R
Team CanvasJS
Please take a look at this JSFiddle for an example on showing / hiding legend items of all the dataSeries using a button by setting showInLegend property.
The example also shows tooltip with full content on mouse hovering legend item with the help of itemmousemove of legend.
—
Vishwas R
Team CanvasJS
You can hide a dataSeries by default using visible property. Please take a look at this Gallery Page for an example which shows dataSeries being hidden by default and show them on clicking legend. Also you can checkout JavaScript Gallery & React Gallery for more examples.
—
Vishwas R
Team CanvasJS
You can use legend itemclick to perform both hiding / unhiding dataseries and to add your own functionality along with that.
If you are still facing issue, kindly create JSFiddle with your usecase and share it with us so that we can look into the code / chart-options being used, understand the scenario better and help you resolve.
—
Vishwas R
Team CanvasJS
We have fixed bug related to range events being fired multiple times when slider or handle or range buttons clicked multiple times without changing the range. We will further improve it in our future versions to work properly irrespective of clicking any StockChart elements.
—
Vishwas R
Team CanvasJS
We have just released StockChart v1.2 with a few bug fixes related to range events. Please refer to the release blog for more information. Do download the latest version from our download page and let us know your feedback.
—
Vishwas R
Team CanvasJS
Thanks for reporting the use-cases. We will fix it in future versions.
—
Vishwas R
Team CanvasJS
Doko,
Considering this as duplicate of “Animation” doesn’t work hence closing the same.
—
Vishwas R
Team CanvasJS
Doko,
As mentioned in previous reply, you should use animationEnabled property to enable or disable animation. In the sample that you have shared, you seem to be mentioning it as animationEnable
(d missing). Changing it to animationEnabled
should work fine in your case.
Note: As of now, animation happens only on the first render of the chart & not on every update.
—
Vishwas R
Team CanvasJS
You can enable or disable animation in Chart by setting animationEnabled property. You seems to be setting it as animationEnable
, changing it to animationEnabled
should work fine in your case. If you are still facing issue, kindly create JSFiddle reproducing the issue you are facing and share it with us so that we can look into the code, understand the scenario better and help you resolve.
I update the project in “Google drive”.
https://drive.google.com/drive/folders/1xDFc-JTLbauMdI8-xQ_oIXkpfbiv_Xow?usp=sharing
It seems like the sample project shared by you is restricted and requires permission. Can you please make the sample public so that we can access it?
Considering this as duplicate of “Animation” doesn’t work hence closing the same.
—
Vishwas R
Team CanvasJS
You can enable or disable animation in Chart by setting animationEnabled property. You seems to be setting it as animationEnable
, changing it to animationEnabled
should work fine in your case. If you are still facing issue, kindly create JSFiddle reproducing the issue you are facing and share it with us so that we can look into the code, understand the scenario better and help you resolve.
I update the project in “Google drive”.
https://drive.google.com/drive/folders/1xDFc-JTLbauMdI8-xQ_oIXkpfbiv_Xow?usp=sharing
It seems like the sample project shared by you is restricted and requires permission. Can you please make the sample public so that we can access it?
—
Vishwas R
Team CanvasJS