Carlo,
Glad that you figured it out.
__________
Indranil Deo,
Team CanvasJS
@iam,
The behavior is designed such that zooming is limited upto a certain region, so the user doesn’t end up zooming into a blank-region (region with no dataPoints). To zoom into a certain region, there should be a minimum of 3-4 dataPoints.
__________
Indranil Deo,
Team CanvasJS
Raj,
Gradient support is not there in our roadmap as of now.
We are looking into issue where axisY range is not getting updated after zooming, in candlestick chart. We will be fixing the same in our future releases.
________
Indranil Deo,
Team CanvasJS
1. Should we clear the chart? right now it plots the data right on top of the last data?
You should empty the dataPoints on ecah AJAX call.
2. I tried (and it didn’t work) in the ajax
chart.options.data[0].dps = data;
chart.render();
It should be chart.option.data[0].dataPoints = data
instead of chart.options.data[0].dps = data;
3. I also tried to set dps to [] reset the array to clear the chart to no avail.
You can render chart initially with JSON data. Then you can update the chart dynamically from JSON data.
Soon after every AJAX call emptying dps
& updating dataPoints accordingly will work fine in your case.
Please take a look at this jsfiddle. Also have a look at Live Updating Charts from JSON API & AJAX.
__________
Indranil Deo,
Team CanvasJS
Methods and Properties were introduced in v1.9.6, kindly refer this blog post for more info. Also please download latest version from our download page to use the latest features.
__________
Indranil Deo,
Team CanvasJS
Please create a sample project reproducing the issue along with sample data, so that we can understand it better and help you out.
__________
Indranil Deo,
Team CanvasJS
You can achieve this by setting the itemMaxWidth to 100 and itemWrap to false.
________
Indranil Deo,
Team CanvasJS
Ankit,
Using labels to display the dateTime will work fine in your case. Please take a look a look at this jsfiddle.
_________
Indranil Deo,
Team CanvasJS
Raj,
Please create a jsfiddle reproducing the issue, so that we can understand your requirement better.
__________
Indranil Deo,
Team CanvasJS
Unless we look into your code, we can’t predict what to suggest for your project. Can you kindly create a sample project and share your code, so that we can look into it and help you out. Also this relevant topic from stack-overflow might help you.
——
Indranil Deo
Team CanvasJS