Home › forums › Using CanvasJS › Set value onClick event of 'dataPoints' at custom position
Tagged: Custom paramter - onClick event, RangeBar onClick event show values on last position
Please guide me on below case….
Case 1 : Display only once value(flag in demo code) in ‘rangeBar’ chart. [Click on row to see the values]
Case 2 : Set value(flag value) on click event of ‘dataPoints’ at the current mouse click position.
Case 3 : Set value(flag value) on click event of ‘stripLines’ at inside the starting and ending position(not inside or outside chart)
Demo program link attached…
We are looking into the issue and will get back to you at the earliest.
Placing the indexLabel at arbitrary position is not possible as of now. However you can achieve something similar
using this work-around.
I will check your code with different way. But, after seen your concepts I will modify my testing demo.
Only 1 case is not resolved.
Case 3: Click on last row
– While click on ‘green’ color – “F” flag put at last value of the row (not put on green color) – NEED YOUR HELP.
– While click on ‘blue’ color – “F” flag put at last value of the row – it is working fine.
Note: if the solution is possible with different way.
like i will pass parameter to “onPut(e, customParameter)” then this way i resolved it.
Using chart.axisY.convertValueToPixel(e.dataPoint.y) you can get the pixel coordinate of the last index value of y.
Then adding it to the width() of the textBox would make the textBox render to the end of the bar.
Please take a look at this fiddle.
You must be logged in to reply to this topic.