Line chart - color of given points in series
See original GitHub issueI’m submitting a … (check one with “x”)
[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here
Current behavior The “point” color is the same as the line color and can’t be customized.
Expected behavior That would be great if series could have one more parameter to represent given point’s color, like in the attachment.
What is the motivation / use case for changing the behavior? More flexibility. An example use case: One may like to present server’s response times in a period of time, and whenever the response code is not HTTP-200, he would like the point to be red (when highlighting/hoovering).
Issue Analytics
- State:
- Created 6 years ago
- Reactions:11
- Comments:6
Top Results From Across the Web
Vary the colors of same-series data markers in a chart
Set varying colors of data markers (bars, columns, lines, pie or doughnut slices, dots, and other shapes) automatically in an Office chart.
Read more >A Complete Guide to Line Charts | Tutorial by Chartio
Line charts are a fundamental chart type generally used to show change in values across time. Learn how to best use this chart...
Read more >Excel Multi-colored Line Charts - My Online Training Hub
The chart below contains 3 lines; red, yellow and green. They are sitting on top of one another to give the appearance of...
Read more >How to Change the Color of Line in Excel Line Graph - YouTube
In this video, you will learn how to change the color of the line in an excel line graph.How to Change the Color...
Read more >JavaScript Point Line Chart - LightningChart
As it was mentioned before, the series accepts points in format { x: number, y: number: color: Color } with specified IndividualPointFill to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Actually, I found an easy workaround by simply extending the existing
line-chart
andcircle-series
. See line-chart and circle-series for the code of the parent components. In case this issue gets more attention I might put more thought into this and create a PR, but I think for a lot of cases it’s easier to extend and customize the existing components.I kind of used one different approach to achieve something similar, In my case i need to highlight few points of line chart in red and few in green,
What i did was,
Yes, i created one extra line series with only the highlight points. And i use some conditions in my line chart to not to draw line for this extra series.
And here https://github.com/swimlane/ngx-charts/issues/467#issuecomment-645795010, i made few changes to not to display line in svg for this new series