Skip to content
Board Index
FAQ
Login
Register
Board index
Highcharts - The JavaScript Charting Framework
Highcharts Stock
Unanswered topics
Active topics
Board Index
FAQ
Search
Login
Register
Beginner question
Post Reply
Print view
2 posts • Page
1
of
1
laka
Posts:
3
Joined:
Sun Aug 28, 2022 8:20 am
Beginner question
Quote
Sun Aug 28, 2022 8:24 am
Hello,
I'm sorry, I speak a little English.
This demo is nice:
/stock/demo/basic-line
I would like:
Add 1 dotted line to zero (0).
Up zero: green points/lines
Down zero: red points/lines
Is it possible? Please help me with code. Thanks.
michal.f
Posts:
1114
Joined:
Thu Aug 12, 2021 12:04 pm
Re: Beginner question
Quote
Mon Aug 29, 2022 11:17 am
Hello and welcome to our forum and thanks for contacting us with your question!
Yes, it is possible. You can add a dotted line using
yAxis.plotlines
property and to change color of lines and points depending on the value you can use
series.zones
.
Demo
:
https://jsfiddle.net/BlackLabel/ws2rn0ep/
API
:
https://api.highcharts.com/highcharts/yAxis.plotLines
https://api.highcharts.com/highcharts/series.line.zones
Let me know if you have any further questions!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/
Display posts from previous:
All posts
1 day
7 days
2 weeks
1 month
3 months
6 months
1 year
Sort by
Author
Post time
Subject
Ascending
Descending
Post Reply
Print view
2 posts • Page
1
of
1
Return to “Highcharts Stock”
Jump to
Highcharts - The JavaScript Charting Framework
Highcharts Usage
Highcharts Stock
Highcharts Maps
Highcharts Gantt
Highcharts Dashboards
Highcharts Cloud
Wrappers - The Official Highcharts Wrappers
Highcharts .NET
Highslide JS - The JavaScript Image and Media Viewer
Highslide JS Usage
Highslide Editor
Highslide FAQ
News