Muhammad,
Are you looking for indexLabel with keywords as {y}. Here is an example.
[Update]: We have just released v1.9.0 with Logarithmic Axis. Please checkout gallery page for Logarithmic Scale.
You can manage the viewport by setting viewportMinimum and/or viewportMaximum. Using which you can reduce the gap. And in logarithmic axis 0 always maps to 1 as log(1) = 0.
Sorry Jason,
Auto index-labelling was not implemented instead indexLabelMaxWidth was implemented using which you can avoid overlapping of index-labels.
[Update]: We have just released v1.9.0 with Logarithmic Axis. Please checkout gallery page for Logarithmic Scale.
Cameron,
I have made necessary change as per your requirement. And here is the updated fiddle. Hope, this will help you.
And in log scale you can plot only positive numbers. So, for negative numbers and zero you can transform it to null value.
[Update]: We have just released v1.9.0 with Logarithmic Axis. Please checkout gallery page for Logarithmic Scale.
Cameron,
In your example you have to set valueFormatString inside axisY object for applying to axisY labels.
In case you are using labelFormatter for implementing logarithmic axisY it will override valueFormatString. So, in this case inside labelFormatter function in the CanvasJS.formatNumber method you have to pass required format as second argument. Eg. in the example of logarithmic axisY by rewriting line 12 as below would remove the comma.
lable = CanvasJS.formatNumber(lable/1000, "####") +"k";
[Update]: We have just released v1.9.0 with Logarithmic Axis. Please checkout gallery page for Logarithmic Scale.
Cameron,
1. We checked, valueFormatString is working fine. Can you pleasse create a jsfiddle with reproducing the issue.
2. Are you looking for logarithmic axisY? Here is an example. If this doesn’t suite your requirements, could you please provide us a pictorial representation to understand better.
Hi,
If you don’t want to show the zoom/pan/reset tool-bar you can hide it using css
.canvasjs-chart-toolbar {
display: none !important;
}
Here is the example.
Hi,
Without knowing the JSON data its not possible to figure out the issue. Can you please post a sample JSON response?
Yeah, in similar way you can select and drag a dataPoint in both the direction(‘xy’). Here is example.
Cameron,
Drag and drop line chart points is not possible directly with existing the API as of now. Here is an example to achieve the same using mouseover, mouseout, and rangeChanging event along with javascript onmousedown event.
Hi,
Selecting the elements even near border works fine. But still if it create troubles you can manually increase the viewPort by setting viewportMin and viewportMax so that the dataPoints will be far away from border.
Hi,
Sorry, we are unable to reproduce this issue. There might be type mismatch so, just confirm by consoling type of your data value. If still the problem persists please create a jsfiddle, so that we can look into it.
Jarode,
For ordering data you can set x values as per your requirement. In previous reply Boogie is given an nice example.