Tejal,
When just labels are passed without x-values, x-values are automatically added in successive order as 0,1,2,3,4… You can overcome it by passing the values to the x property instead of label.
—-
Manoj Mohan
Team CanvasJS
You can use tickLength property to increase the spacing between axisX and axisX labels.
—-
Manoj Mohan
Team CanvasJS
Rendering chart for the first time only after scrolling to the position of chart should work fine in your case. Creating an array of having all the charts (chartComplete, chartWorking, chartLost, chartWaiting) and adding scrollFunction method should work fine.
If you are still facing the issue, kindly create JSFiddle reproducing the issue and share it with us so that we can look into the code, understand the scenario better and help you out.
—
Manoj Mohan
Team CanvasJS
@deepak-chaudharyhannainst-in,
It’s not possible to selectively zoom/pan based on a specific axis. However, this JSFiddle shows the nearest possible working solution using rangeChanging event.
—-
Manoj Mohan
Team CanvasJS
Anil,
Sorry, padding in legend items is not available as of now.
If you are trying to organize the legend items in columns, you can do by setting itemWidth property.
—–
Manoj Mohan
Team CanvasJS
Please take a look at this documentation page for step by step tutorial on rendering chart from CSV file along with an example.
—
Manoj Mohan
Team CanvasJS
When the axisYType is set to secondary, adding striplines to secondary Y-axis (axisY2) should work fine. Please take a look at this updated JSFiddle. Also refer documentation for more customization options available.
—
Manoj Mohan
Team CanvasJS
Please download the sample project from this link. An instructions.txt file has been included for your convenience with instructions to set up the project and get the charts running.
—-
Manoj Mohan
Team CanvasJS
Sorry, there is no feature built-in to add missing datapoints. CanvasJS just renders the chart with datapoints that you have passed in chart-options and it doesn’t add any extra datapoints. You can do it in backend – as you have mentioned.
—
Manoj Mohan
Team CanvasJS
You can display y-value of the datapoint in indexlabel. However if you like to show it over axisY, you can use striplines to do so. Please take a look at this JSFiddle.
—
Manoj Mohan
Team CanvasJS
You can’t run JSP page in JSFiddle but in server like Apache Tomcat or Glassfish. Please refer this tutorial for step to step guidance on setting up environment for JSP. Also refer this article for an example on retrieving data from Oracle database in JSP.
—
Manoj Mohan
Team CanvasJS
Glad that you were able to resolve the issue and make it work :)
—
Manoj Mohan
Team CanvasJS