Trying to build a timeline in Flex, Have a horizontal slider when i slide the slider there should be a line on the linechart as a needle moving with respect to value of slider,I Tried using gridlines to achieve this but the grid lines are visible across all the values of x axis,But I want to show only single gridline with respect to value of slider. Is there a way to hide few grid lines and show specific gridlines.
Share
Here’s something I created in about 30 minutes. It’s very rudimentary, and has some issues that I will leave for you to solve (or you can post a new question specific to the remaining issues). It’s likely you’ll need to modify this to suit your application anyway, so I didn’t bother looking at the remaining issues.
I’ve assumed you’re using
Dateobjects for the horizontal axis of the chart. As such you need to convert the date object to it’s corresponding numerical value (in epoch time). This allows you to work with the slider component, which expects numbers.If you do have further questions, I recommend trying to post whatever code you’re using (or a simple version of it), that others can run. That way the answers you get will be specific to your case, and not generic like this one 🙂