[ 3 posts ]

Anitha M

  • Username: Anicomsolu
  • Joined: Sat Nov 19, 2011 4:16 am
  • Posts: 5
  • Offline
  • Profile

Trouble changing marker color in line chart

Post Posted: Sun Nov 20, 2011 9:35 pm
+0-
Hi,
I have changed the marker color in linechart, but am not able to change. I am using the below code:

var seriesDef = [
{"type":"combo",
"yKey":"CLOSETOTAL",
"yDisplayName":"CLOSETOTAL",
"xAxis":"x",
"line": {
"color": "#426ab3"
},
"marker":
{ "fill": {
"color": "#426ab3"
},
"border": { "color": "#000000"}}, "yAxis":"y1", "xDisplayName":"DAY"}
];

and tried some other code also. Can you please suggest me some ideas. Need any js to add?


Thanks in advance.

Tripp Bridges

YUI Developer

  • Username: tripp
  • Joined: Wed Jan 07, 2009 1:54 pm
  • Posts: 435
  • GitHub: tripp
  • Gists: tripp
  • YUI Developer
  • Offline
  • Profile

Re: Trouble changing marker color in line chart

Post Posted: Mon Nov 21, 2011 10:14 am
+0-
Your posted code is correct. Please post back with the full code or a link and I'll be happy to help find the issue.

Thanks,
Tripp

Tripp Bridges

YUI Developer

  • Username: tripp
  • Joined: Wed Jan 07, 2009 1:54 pm
  • Posts: 435
  • GitHub: tripp
  • Gists: tripp
  • YUI Developer
  • Offline
  • Profile

Re: Trouble changing marker color in line chart

Post Posted: Mon Nov 21, 2011 10:24 am
+0-
To be clear, your code will should give the markers a black border but the fill is blue. (that is what has been specified) For a black fill, you'd need
Code:
fill: {
    color: "#000000"
}


Thanks,
Tripp
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum