You can update valueFormatString on zooming with the help of rangeChanging event to achieve your requirement. Please take a look at this JSFiddle for an example on the same.
—-
Manoj Mohan
Team CanvasJS
Can you kindly share sample project along with sample xml file over Google-Drive or Onedrive so that we can look into the code, run it locally to understand the use-case better and help you out?
From what we have observed, sometimes things get delayed mostly when we are not able to reproduce the issue or not able to understand the exact requirements or the solution that we provide may not work properly due to the variation in your sample data / chart-options being used by you and us.
Having a sample project helps us in figuring out the scenario better and help you out accordingly.
—-
Manoj Mohan
Team CanvasJS
Labels over axis y are not possible as of now. However, you can achieve it using labelFormatter as shown in this JSFiddle.
—-
Manoj Mohan
Team CanvasJS
Can you kindly create a sample StackBlitz reproducing the issue you are facing and share it with us so that we can understand the scenario better and help you out?
—-
Manoj Mohan
Team CanvasJS
Michael,
Sorry, controlling the first label on the axes is not available as of now.
—-
Manoj Mohan
Team CanvasJS
Sorry for the inconvenience caused. Your use-case seems to be working fine with zoomType set to x. As we were busy working on some other important features, we will reconsider this behavior for our upcoming versions.
—-
Manoj Mohan
Team CanvasJS
Please take a look at this StackBlitz project for an example on custom scrollable legend in React CanvasJS Chart.
—-
Manoj Mohan
Team CanvasJS
Nicola,
I tried the code you sent me and it works well but when I modify the link with mine it’s all blank
For security reasons, browsers restrict cross-origin requests. To access JSON from a different domain, you can refer to JSONP.
And if the json data are not filtered by close like
https://eodhistoricaldata.com/api/eod/MCD.US?api_token=OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX&fmt=json&period=d.
could I use in the line chart “date” for X axis and “adjusted close” for Y axis
You can parse the JSON and pass “date” and “adjusted_close” values as x and y in dataPoints as shown in this JSFiddle.
Considering this thread as a duplicate of chart with data from json and hence closing the same.
—-
Manoj Mohan
Team CanvasJS
Nicola,
I tried the code you sent me and it works well but when I modify the link with mine it’s all blank
For security reasons, browsers restrict cross-origin requests. To access JSON from a different domain, you can refer to JSONP.
And if the json data are not filtered by close like
https://eodhistoricaldata.com/api/eod/MCD.US?api_token=OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX&fmt=json&period=d.
could I use in the line chart “date” for X axis and “adjusted close” for Y axis
You can parse the JSON and pass “date” and “adjusted_close” values as x and y in dataPoints as shown in this JSFiddle.
Considering this thread as a duplicate of chart with data from json and hence closing the same.
—-
Manoj Mohan
Team CanvasJS
Nicola,
I tried the code you sent me and it works well but when I modify the link with mine it’s all blank
For security reasons, browsers restrict cross-origin requests. To access JSON from a different domain, you can refer to JSONP.
And if the json data are not filtered by close like
https://eodhistoricaldata.com/api/eod/MCD.US?api_token=OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX&fmt=json&period=d.
could I use in the line chart “date” for X axis and “adjusted close” for Y axis
You can parse the JSON and pass “date” and “adjusted_close” values as x and y in dataPoints as shown in this JSFiddle.
—-
Manoj Mohan
Team CanvasJS
1. while assigning dynamic height to chart using options for individual charts, navigator is not showing (refer container 1 in attached code)
StockChart takes default height when stockchart container’s height is not set. You can set the height of stockchart container by setting height in “containerProps” props of CanvasJS as explained in tutorial. Please take a look at this updated stackblitz example.
2.How can i decouple or extract navigator from container 2 so that it do not become part of scroll in case overflow is applied.(refer container 2 in attached code)
Decoupling navigator from stockchart is not possible as of now. However, you can achieve it by setting height of chart, navigator and stockchart container as shown in this stackblitz example.
Considering this thread as a duplicate of navigator hidden when height assigned to charts in stockcharts and hence closing the same.
—-
Manoj Mohan
Team CanvasJS
1. while assigning dynamic height to chart using options for individual charts, navigator is not showing (refer container 1 in attached code)
StockChart takes default height when stockchart container’s height is not set. You can set the height of stockchart container by setting height in “containerProps” props of CanvasJS as explained in tutorial. Please take a look at this updated stackblitz example.
2.How can i decouple or extract navigator from container 2 so that it do not become part of scroll in case overflow is applied.(refer container 2 in attached code)
Decoupling navigator from stockchart is not possible as of now. However, you can achieve it by setting height of chart, navigator and stockchart container as shown in this stackblitz example.
Considering this thread as a duplicate of navigator hidden when height assigned to charts in stockcharts and hence closing the same.
—-
Manoj Mohan
Team CanvasJS