There seems to be issue with variable declaration. Declaring dataPoints2
should work fine in this case. Please take a look at this JSFiddle for working code.
From what we have observed, sometimes things get delayed mostly when we are not able to reproduce your use-case or not able to understand the exact requirements. Having a JSFiddle helps us in understanding your case better and many a times we can just edit your code on JSFiddle to fix the issue right-away. I request you to brief more along with JSFiddle with your use-case if you have further queries or facing any issue.
—
Vishwas R
Team CanvasJS
The issue seems to with mismatch in the brackets in your code. Please check browser-console for error. Closing the get method, window.onload event and declaring dataPoints variable should work fine in your case.
—
Vishwas R
Team CanvasJS
You can programmatically zoom / pan to a region by setting viewportMinimum & viewportMaximum. Please take a look at this JSFiddle which shows setting viewport based on values entered in input-fields.
From what we have observed, sometimes things get delayed mostly when we are not able to reproduce your use-case or not able to understand the exact requirements. Having a JSFiddle helps us in understanding your case better and many a times we can just edit your code on JSFiddle to fix the issue right-away. I request you to brief more along with JSFiddle with your use-case if you have further queries or facing any issue.
—
Vishwas R
Team CanvasJS
You can programmatically zoom / pan to a region by setting viewportMinimum & viewportMaximum. Please take a look at this JSFiddle which shows setting viewport based on values entered in input-fields.
From what we have observed, sometimes things get delayed mostly when we are not able to reproduce your use-case or not able to understand the exact requirements. Having a JSFiddle helps us in understanding your case better and many a times we can just edit your code on JSFiddle to fix the issue right-away. I request you to brief more along with JSFiddle with your use-case if you have further queries or facing any issue.
Considering this as duplicate of Scaling, hence closing the same.
—
Vishwas R
Team CanvasJS
You can download all versions of CanvasJS from My Account page, once you have purchased the license. Please contact sales@canvasjs.com for sales related queries.
—
Vishwas R
Team CanvasJS
As of now, risingColor and fallingColor are used to fill the body of candlestick chart whereas border of the body and the color of wick can be controlled by color property of dataSeries. To make entire body and wick to have same color, you can set color property of dataPoint. Please take a look at this JSFiddle for an example which shows customizing the entire candlestick to be single color based on their values.
Thanks for sharing the use-case, we will reconsider this behavior in future versions.
—
Vishwas R
Team CanvasJS
For security reasons, browsers restrict cross-origin requests. Serving JSON file from local webserver and making an AJAX call to it or serving it from CORS enabled JSON hosting service like myjson.com should work fine. Please take a look at this JSFiddle.
—
Vishwas R
Team CanvasJS
Glad that it worked for you with some minor modifications :)
And thanks for sharing the modified code, which would help others if they are looking for something similar :)
—
Vishwas R
Team CanvasJS
With few lines of code, you can hide / unhide multiple dataSeries by clicking just one legend and grouping them as shown in this JSFiddle.
My other issue is attempting to make this dynamically load. This is just but one pump and I would have to extract the data for various other pumps. The chart trims, HP, etc. all change drastically and there’s possibly fewer or more series lines. I saw it’s possible to load dataPoints, however is it possible to store and load each series from within data, axisX etc.
CanvasJS Just renders chart with the data being passed to it. You can pass and store anything inside chart, data, etc and access it as chart.options.propertyName (chart.options.data[index].propertyName if stored within dataSeries).
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. Having a JSFiddle helps us in figuring out the issue and many a times we can just edit your code on JSFiddle to fix the issue right-away. I request you to share JSFiddle with your use-case if you have further queries or facing any issue.
—
Vishwas R
Team CanvasJS
Heatmap is there in our Wishlist. But we don’t have definite timeline as we are busy implementing some important features at this point of time.
—
Vishwas R
Team CanvasJS
It seems to be working fine in Ubuntu and Mac-OS. Can you kindly share the version of Ubuntu, Mac-OS and the browser details like browser name and version in which you are facing this issue so that we can look into it and resolve?
—
Vishwas R
Team CanvasJS
Can you kindly create a 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 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 chart-options being used by you and us.
Having a JSFiddle helps us in figuring out the issue and many a times we can just edit your code on JSFiddle to fix the issue right-away.
—
Vishwas R
Team CanvasJS
Can you kindly create a 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 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 chart-options being used by you and us.
Having a JSFiddle helps us in figuring out the issue and many a times we can just edit your code on JSFiddle to fix the issue right-away.
—
Vishwas R
Team CanvasJS
Can you kindly share sample project with sample data over Google-Drive or Onedrive so that we can run it locally at our end to understand the issue you are facing and help you resolve?
—
Vishwas R
Team CanvasJS
Tom,
CanvasJS Charts has simple API with less learning-curve and easy to understand documentation. Please checkout our documentation for step-to-step tutorial on creating charts and customizing it – along with examples. Also you can refer gallery for more examples.
For sales related queries please contact sales@canvasjs.com
—
Vishwas R
Team CanvasJS