Welcome Guest Search | Active Topics |

draw a line
zolotoy
#1 Posted : Saturday, May 6, 2017 4:03:03 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/1/2017(UTC)
Posts: 8

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
would it be possible to manually draw a vertical line on a top of the chart? Or there a way of placing a vertical marker at a given x value?

Thanks
Dragan
#2 Posted : Monday, May 8, 2017 7:57:50 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
Hi,

You can use our our plot lines and plot bands functionality:
http://www.jqchart.com/jquery/chart/ChartAxes/PlotLines
http://www.jqchart.com/jquery/chart/ChartAxes/PlotBands

In your case you can add a plot line to the x-axis with:

Code:
axes: [
                    {
                        location: 'bottom',
                        plotLines: [
                            {
                                lineWidth: 2,
                                strokeStyle: 'green',
                                value: 42, // put your x-value
                                zIndex: 0, // Posible values - 0, 1, 2
                                title: {
                                    text: 'Target 1',
                                    hAlign: 'right',
                                    fillStyle: 'green'
                                }
                            }
                        ]
                    }
                ],
Best Regards,
Dragan Matek
jqChart Inc.
zolotoy
#3 Posted : Monday, May 8, 2017 9:16:37 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/1/2017(UTC)
Posts: 8

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
I need to add a vertical line interactively. The best would be is to apply a line/marker to the chart by clicking a mouse when I move it left or right.
Like here:
http://www.jqchart.com/jquery/chart

Thanks
Dragan
#4 Posted : Tuesday, May 9, 2017 7:54:20 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
You can use:
http://www.jqchart.com/jquery/chart/ChartFeatures/Crosshairs
Best Regards,
Dragan Matek
jqChart Inc.
zolotoy
#5 Posted : Tuesday, May 9, 2017 9:22:15 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/1/2017(UTC)
Posts: 8

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
I need to have it staying visible after clicking.
Dragan
#6 Posted : Wednesday, May 10, 2017 5:25:13 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
This functionality is not supported by jqChart.
Best Regards,
Dragan Matek
jqChart Inc.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.086 seconds.