It seems that you are not using indexlabels in the JSFiddle that you have shared. Can you kindly share appropriate JSFiddle so that we can refer & help you solve accordingly.
If you are trying to change the size of labels (axis-labels), try setting labelFontSize property in axis level.
—
Vishwas R
Team CanvasJS
indexLabelFontSize seems to be working fine across all chart-types including area chart. 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 / chart-options being used, understand the scenario better and help you out?
—
Vishwas R
Team CanvasJS
It seems to be working fine. The difference in time component could be because of time-zone difference. Setting time-zone should work fine in your case. Please refer this stackoverflow thread for more information on the same.
new Date().toLocaleString("en-US", {timeZone: "America/New_York"})
If you are still facing issue, kindly create sample project reproducing the issue you are facing and share it with us over Google-Drive or Onedrive along with sample data so that we can run it locally at our end to understand the scenario better and help you out.
—
Vishwas R
Team CanvasJS
In case of line & area charts, markers are shown at particular datapoint value which is joined by a line. But in case of candlestick & ohlc datapoint shown itself is a marker which is not connected by any line. However if you like to show markers at some particular points like showcasing high/low value, you can add scatter chart as shown in JSFiddle.
—
Vishwas R
Team CanvasJS
Marco,
Please take a look at this updated JSFiddle which shows how to update data from external JSON.
—
Vishwas R
Team CanvasJS
Marco,
Parsing JSON to the format accepted by CanvasJS and passing it to chart-options should work fine. However, date-time over axisY is not possible as of now. which you can work-around it as shown in this JSFiddle.
If you are still facing any issue, kindly create JSFiddle reproducing the issue and share it with us so that we can look into it and help you out.
—
Vishwas R
Team CanvasJS
It is possible in Range Bar Chart to have more than one bar for each y-axis value?
Incase of range-bar chart, x-axis is placed vertically and y-axis horizontally. Do you mean same x-value? If so, you can achieve it by passing same x-value for multiple datapoints as shown in this JSFiddle.
If this doesn’t help you fulfill your requirements, can you kindly share pictorial representation or an example of your requirements & brief us further so that we can understand it better and help you out?
—
Vishwas R
Team CanvasJS
Can you kindly brief us further about your requirement along with pictorial representation or an example so that we can understand it better and help you out?
—
Vishwas R
Team CanvasJS
Grids are shown at every interval on the axis & may not be shown at viewportMinimum & viewportMaximum after zooming as the viewport range may not be the integral multiples of the interval. To show the grids at viewportMinimum & viewportMaximum upon zooming / panning, you can add striplines on rangeChanged event as shown in this JSFiddle.
my requirement is mentioned in the below picturescreenshot
in this picture the green line that is not in the zoomed graph and the x-max and y-max values also
please provide a solution
The image shared by you is restricted and requires permission. Can you kindly make it public so that we can access it to understand the scenario?
—
Vishwas R
Team CanvasJS
You can use CanvasJS Column Chart with indexlabel, which auto-adjusts / pushes inside without clipping towards top of the chart.
—
Vishwas R
Team CanvasJS
You can use range-column chart to render column from negative to positive. It’s not possible to position x-axis to at zero-value. However you can workaround this as shown in this JSFiddle.
—
Vishwas R
Team CanvasJS
You can define the format of value shown in axis label by setting valueFormatString. To show labels as 10/06/2020, you should be setting valueFormatString to “DD/MM/YYYY’. Please refer documentation for more customization options available.
—
Vishwas R
Team CanvasJS