Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zones for Series #1

Open
hp1361 opened this issue Aug 26, 2017 · 3 comments
Open

Zones for Series #1

hp1361 opened this issue Aug 26, 2017 · 3 comments

Comments

@hp1361
Copy link

hp1361 commented Aug 26, 2017

Good Morning,

Is it possible to define the zones on the column chart?

I want to display columns with values less than 2 in red and columns with values greater than 2 to be displayed in blue.

But in the series property, there is only one zone possible to define!

Please guide me

thanks

@pmrozek
Copy link
Owner

pmrozek commented Aug 28, 2017

@hp1361
Copy link
Author

hp1361 commented Aug 28, 2017

If you use javascript directly, you are right
But I mean, using TagHelper in .NET Core. in the series property, there is only one zone possible to define!

@pmrozek
Copy link
Owner

pmrozek commented Aug 29, 2017

In the new version you can define more zones (5.0.14):

@Html.Highsoft().Highcharts( new Highcharts { Title = new Title { Text = "Styled color zones" }, YAxis = new List <YAxis>() { new YAxis() { Min = -10 } }, PlotOptions = new PlotOptions { Areaspline = new PlotOptionsAreaspline { Zones=new List<PlotOptionsAreasplineZone>() { new PlotOptionsAreasplineZone() { Value = 0, ClassName = "zone-0" }, new PlotOptionsAreasplineZone() { Value = 10, ClassName = "zone-1" }, new PlotOptionsAreasplineZone() { Value = -10, ClassName = "zone-2" } } } }, Series = new List<Series> { new AreasplineSeries { Name = "Data", Data = @ViewBag.Data as List<AreasplineSeriesData> } } } , "container")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants