css - JavaFx Line Chart Legend Symbol -


i trying draw line chart without symbol managed it. want set legend symbol line instead of symbol. try use

-fx-shape: "m0,0 l10,0";

to draw line nothing shown. try draw rectange using

-fx-shape: "m1,0 l5,0 l15,0 l1,1 z";

but instead of rectangle gives me square second legend symbol.

*{   -line-0: #191970;   -line-1: #e9967a;   -line-2: #f0e68c;   -line-3: #dda0dd;   -line-4: #0181e2;   -line-5: #2f357f;    -fx-create-symbols: false; }  .default-color0.chart-series-line { -fx-stroke: -line-0;  } .default-color1.chart-series-line { -fx-stroke: -line-1; } .default-color2.chart-series-line { -fx-stroke: -line-2; }  .default-color0.chart-line-symbol {  /*solid circle*/      -fx-background-color: -line-0;     -fx-background-radius: 5px;     -fx-shape: "m0,0 l10,0"; } .default-color1.chart-line-symbol { /* solid square */     -fx-background-color: -line-1;     -fx-background-radius: 0; } .default-color2.chart-line-symbol { /* solid diamond */     -fx-background-color: -line-2;     -fx-background-radius: 0;     -fx-padding: 7px 5px 7px 5px;     -fx-shape: "m5,0 l10,9 l5,18 l0,9 z"; } .default-color3.chart-line-symbol { /* cross */     -fx-background-color: #0181e2;     -fx-background-radius: 0;     -fx-background-insets: 0;     -fx-shape: "m2,0 l5,4 l8,0 l10,0 l10,2 l6,5 l10,8 l10,10 l8,10 l5,6 l2,     10 l0,10 l0,8 l4,5 l0,2 l0,0 z"; } .default-color4.chart-line-symbol { /* solid triangle */     -fx-background-color: #2f357f;     -fx-background-radius: 0;     -fx-background-insets: 0;     -fx-shape: "m5,0 l10,8 l0,8 z"; } 

enter image description here

how can show line in legend symbol?


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -