Highchart数据系列充满了不同的颜色 [英] Highchart data series filled with different colors

查看:85
本文介绍了Highchart数据系列充满了不同的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要弄清楚如何在Highcharts中为不同颜色的相同数据系列点着色。例如,假设我有几天的数据系列,我想要一个折线图。在这一行中应该区分特定的日子(可能用某种颜色着色)。

I need to figure out how to color the same data series points with different colors in Highcharts. For example, let's say I have a data series for several days and I would like to have a line graph. In this line specific days should be distinguish (maybe colored by some color).

推荐答案

尝试使用 fillColor 属性:

{
    name: 'xyz',
    x: 123,
    y: 456,
    fillColor: '#00FF00'
}

这篇关于Highchart数据系列充满了不同的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆