You can render chart based on equation as well as shown in this JSFiddle. Changing the dataPoints as per your equation should work fine.
—-
Manoj Mohan
Team CanvasJS
It seems like the x-values that are passed to the chart are null. X-Values can either be numeric or date-time. Please take a look at this sample project with data for an example on drilldown chart with data from database. You can change the structure of the database table according to your requirements, update query accordingly and pass datapoints to the chart-options.
—-
Manoj Mohan
Team CanvasJS
Can you please brief us more about your requirement with pictorial representation so that we can understand your scenario better and help you out?
—-
Manoj Mohan
Team CanvasJS
Sudhashri,
It seems to be working fine.
In case you are still facing the issue, create a sample reproducing the issue so that we can understand your issue better and help you out.
—-
Manoj Mohan
Team CanvasJS
We are looking into it and we will get back to you at the earliest.
—-
Manoj Mohan
Team CanvasJS
Tejal,
Can you please share some pictorial representation of your requirement, so that we can understand the scenario better and suggest you an appropriate solution?
—-
Manoj Mohan
Team CanvasJS
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.
Considering this thread as a duplicate of Canvas Data, hence closing the same.
—-
Manoj Mohan
Team CanvasJS
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