I continue to learn to use details of higcharts and now what I want to do is that with the following I can visualize 3 lines at the same time and then activate or deactivate them when I want to
DotNet.Highcharts.Highcharts chart = new DotNet.Highcharts.Highcharts("StockChart")
// DotNet.Highstock.Highstock chart = new DotNet.Highstock.Highstock("Chart")
.InitChart(new Chart
{
Type = ChartTypes.Line,
ZoomType = ZoomTypes.X,
Width = 900,
Height = 300
//DefaultSeriesType = ChartTypes.Line,
//ZoomType = ZoomTypes.X,
//SpacingRight = 20
})
.SetTitle(new Title
{
Text = ""
})
.SetPlotOptions(new PlotOptions
{
Line = new PlotOptionsLine
{
EnableMouseTracking = false,
Animation = new Animation(true) { },
},
})
.SetXAxis(new XAxis
{
Labels = new XAxisLabels
{
Enabled = false
}
})
.SetYAxis(new YAxis
{
Title = new YAxisTitle
{
Text = ""
},
Labels = new YAxisLabels
{
Enabled = false
}
})
.SetSeries(new[]
{
new Series
{
Name = "ECG1",
Data = new Data(chartValues) // Here we put the dbase data into the chart
},
new Series
{
Name = "ECG2",
Data = new Data(chartValues2)
},
new Series
{
Name = "ECG3",
Data = new Data(chartValues3)
}
});
chrtMyChart.Text = chart.ToHtmlString();
Now what I want to do is that when activating a graph the other two are deactivated and only visualize one at a time