Sorry, adding borders to bars in a chart is not available as of now.
—
Shashi Ranjan
Team CanvasJS
i need a solution to redirect by click a stripline.
This fiddle i found but my striplines have only 1px width (no start and end value) and so it doesn´t work for me (Uncaught TypeError: Cannot read property ‘0’ of undefined).
https://jsfiddle.net/canvasjs/5fc8ezyj/How to deal with it? Is it possible to trigger to lable click of stripline or show an tooltip by hover the striplines?
Sorry, this feature is not available as of now.
… think there is also another issue. The fiddle is only if you have 1 striplines. I have multiple.
Also if i zoom in and click in the chart i get error : Uncaught TypeError: Cannot read property ‘x1’ of undefined
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, understand the scenario better and help you out?
—
Shashi Ranjan
Team CanvasJS
Can you kindly create a sample project reproducing the issue along with the sample database and share it over Google-Drive or Onedrive so that we can look into the code, run it locally to understand the scenario better and help you resolve?
From what we have observed, sometimes things get delayed mostly when we are not able to reproduce the issue or not able to understand the exact requirements or the solution that we provide may not work properly due to the variation in chart-options being used by you and us.
Having a sample project helps us in figuring out the issue and suggesting an appropriate solution accordingly.
—
Shashi Ranjan
Team CanvasJS
You can use stripLines over axisX to achieve the above requirement. Please refer to this documentation page for more information and customization options available in stripLines.
—
Shashi Ranjan
Team CanvasJS
Can you kindly share a pictorial representation and brief us more about your requirement so that we can understand your scenario better and help you out?
—
Shashi Ranjan
Team CanvasJS
axisY maximum value is auto-calculated based on the range of dataPoints present in the viewport. But when you try to set the axisY maximum/minimum value manually, the value gets fixed irrespective of any range of dataPoints present in the viewport.
—
Shashi Ranjan
Team CanvasJS
You can achieve the above requirement using the jQuery get() method. Please refer to this StackOverflow article for more information on the same.
—
Shashi Ranjan
Team CanvasJS
Kindly refer this JSFiddle on creating chart from an external text file.
The format of the text file( e.g. dataPoints.txt ) should be:
10 71
22 55
31 50
44 65
50 95
64 68
72 28
—
Shashi Ranjan
Team CanvasJS
You can use the toLocaleString() method to convert a Date object to a string, using locale settings. The timeZone argument of toLocaleString() are used to parse and output dates that are in UTC or local time to a specific time zone.
—
Shashi Ranjan
Team CanvasJS
It is not possible to display ticks at irregular intervals as of now. As a workaround, you can use stripLines on axisX for displaying labels at certain points as shown in this JSFiddle.
—
Shashi Ranjan
Team CanvasJS
Pushing the label and y-value into the dataPoints array using this array_push($dataPoints1, array("label" => "PD", "y"=>"$PD1"));
approach and passing the encoded array to the dataPoints as dataPoints: <?php echo json_encode($dataPoints2, JSON_NUMERIC_CHECK); ?>
should work fine in your case. Please take a look at this updated sample project for the same.
—
Shashi Ranjan
Team CanvasJS