2012-08-14 57 views
2

我想用CSS自定义折线图。我想:JavaFX2,LineChart符号和CSS

  • 显示图例项目符号
  • 不显示线系列符号(即所有的系列和线颜色的传说)(即不显示在图表的数据点)

我尝试以下方法:

.default-color0.chart-series-line { -fx-stroke: #20ABD9; } 
.default-color1.chart-series-line { -fx-stroke: #F19A2A; } 

.default-color0.chart-line-symbol { -fx-background-color: transparent; } 
.default-color1.chart-line-symbol { -fx-background-color: transparent; } 

结果是没有更多的线图符号,符合市场预期,但图表图例没有更多的符号。

然后,如果我在背景颜色中设置了不透明的颜色,图表中仍然有符号。

我不确定这是可能的。 任何帮助,将不胜感激。

回答