Stacked Charts are plotted when multiple column/area charts with same x values are plotted on same scale. Assigning same x-values along with names should work fine in your case. If this doesn’t solve your issue, kindly share sample project reproducing the issue you are facing along with sample database over Google-Drive or Onedrive, so that we can run the project locally, understand the issue better and help you out.
—
Vishwas R
Team CanvasJS
Parsing values from CSV properly for null values should work fine in your case. Please take a look at this updated JSFiddle.
—
Vishwas R
Team CanvasJS
When you use “#” in the format-string, it replaces the “#” symbol with the corresponding digit if one is present; otherwise, no digit appears in the result string whereas when you use “0” in format-string it replaces the zero with the corresponding digit if one is present; otherwise, zero appears in the result string. According to the options / documentation, setting yValueFormatString to “#,##0.0” should let you display 0.9 instead of .9 in toolTip/indexLabel.
Please refer yValueFormatString for all available options.
—
Vishwas R
Team CanvasJS
You can position any HTML Element on top of chart based on user interactivity (mouse-click, mouse-up, etc). Please take a look at this JSFiddle for positioning input field based on mouse click. Please take a look at our documentation for step-by-step tutorial on adding and positioning image (HTML Element) on top of chart.
—
Vishwas R
Team CanvasJS
Tara Ram Goyal,
The value that you are getting using getDate is not valid JavaScript date-time object because of which chart is not getting rendered properly. In this scenario, you can fix it by getting the date from database and change it to timestamp before passing it to chart and by setting xValueType to ‘dateTime’. Please download updated code here.
—
Vishwas R
Team CanvasJS
In the code that you have shared, connection to database is not established and the variable $acct_id
is not declared which you are passing in the query. Fixing these two issues should work fine in your case. Please download the working code here.
—
Vishwas R
Team CanvasJS
In the JSFiddle that you have shared, you are using toolTip contentFormatter where you need to format y-value accordingly – which you can do using formatNumber. Please take a look at this updated JSFiddle.
—
Vishwas R
Team CanvasJS
The example seems to be working fine, please try changing username, password and database name accordingly. You can also download PHP Samples from our download page which you can try running locally in your machine.
If this doesn’t help you out, kindly create a sample project along with sample database reproducing the issue you are facing and share it over Google-Drive or Onedrive so that we can look into your code, understand the issue you are facing and help you out.
—
Vishwas R
Team CanvasJS
Can you kindly share sample database over Google-Drive or Onedrive, so that we can try running your code locally, understand the issue and help you out resolving it?
—
Vishwas R
Team CanvasJS
If you like to show y-value without decimal point in toolTip and indexLabel, you can use yValueFormatString. Please take a look at this updated JSFiddle.
At the same time, to format x-value displayed in toolTip and indexLabel, you can set xValueFormatString according to your requirements and to format axis-labels, you can use valueFormatString.
—
Vishwas R
Team CanvasJS
Glad that you figured out to get access to the chart with the help of ref :) Please take a look at React Gallery for more examples on using React Chart Component.
—
Vishwas R
Team CanvasJS
Our sales team is looking into it and get in touch with you soon. For any sales/license related queries, please contact sales@canvasjs.com.
—
Vishwas R
Team CanvasJS
There is no such restrictions on rendering of number of charts in a page, please take a look at this tutorial on rendering multiple charts in a page for more info. Can you kindly share the sample code in JSFiddle reproducing the issue you are facing so that we can look into it and help you out?
—
Vishwas R
Team CanvasJS