Jump to content


XY scatter coloring


  • Please log in to reply
5 replies to this topic

#1 Harel

Harel

    Forum Newbie

  • Members
  • 3 posts

Posted 02 November 2009 - 04:55 PM

Hi!

i'm using the free vesrion of fusionchars, and i'm tring to change the color of the point (anchors) in a XY scatter graph, but with no luck. (maybe the size and border color too if possible)

i'm using vb6.

how do i do that without using xml?

can i do it with Data.definestyle and Data.applystyle

i went all over the documentantion but did find it.

another thing i didn't find is a defenition of bevel, is it boolean?

thanks ahead

Harel M.


#2 Harel

Harel

    Forum Newbie

  • Members
  • 3 posts

Posted 03 November 2009 - 01:35 AM

thanks rahul!

espesialy for the quick response.

it worked great on the anchors.

how ever the color of the label or legend (i'm not sure how to call it - the series' name under the graph attached to the anchors - if i changed it ro red, it should have a red dot next to it) remained with the same color.

thanks ahead

Harel M.


#3 Rahul Kumar

Rahul Kumar

    Supreme Being

  • Moderators
  • 1150 posts

Posted 03 November 2009 - 12:41 AM

Hi Harel,



Could you please use the following code and try once?



1. If working with individual data method.

>>>

' Adds Dataset with dataset parameters.

Call FusionCharts1.Data.addDataset("Server 1", "anchorBgColor=ff0000;anchorRadius=10") ' you can specify any dataset parameters here.



' Adds Dataset with dataset parameters.

Call FusionCharts1.Data.addDataset("Server 2", "anchorBgColor=0000ff;anchorRadius=10") ' you can specify any dataset parameters here.





2. If working with Array method.

>>>

' Assigning First Dataset seriesnames

arrDataArray(0, 0) = "Server 1"

arrDataArray(0, 1) = "anchorBgColor=ff0000;anchorRadius=10"



' Assigning Second Dataset seriesnames

arrDataArray(1, 0) = "Server 2"

arrDataArray(1, 1) = "anchorBgColor=0000ff;anchorRadius=10"





Also, please refer to http://www.fusioncha...yles/Bevel.html to work with Bevel style.



Hope this will help.
Regards,
Rahul Kumar
Tech Lead


A byte of magic.

#4 Basundhara Ghosal

Basundhara Ghosal

    Supreme Being

  • Members
  • PipPipPipPipPipPipPipPip
  • 2459 posts

Posted 03 November 2009 - 01:49 AM

Hi,

You are most welcome.

Could you please try it using the "color" attribute in the DataSet Series?

Ref.-

   ' Assigning First Dataset seriesnames
arrDataArray(0, 0) = "Server 1"
arrDataArray(0, 1) = "anchorBgColor=ff0000;anchorRadius=10;color=ff0000"

' Assigning Second Dataset seriesnames
  arrDataArray(1, 0) = "Server 2"
  arrDataArray(1, 1) = "anchorBgColor=0000ff;anchorRadius=10;color=00ff00"

However if you change the color of the Legends then the color of the DataPlots will also get changed accordingly as they are inter-related.

Hope this helps. :D


 

Regards,

Basundhara Ghosal

[url="http://www.twitter.com/fusioncharts"]Follow us[/url] on Twitter :D

#5 Harel

Harel

    Forum Newbie

  • Members
  • 3 posts

Posted 03 November 2009 - 02:43 AM

thanks again, it worked :D)

#6 Madhumita

Madhumita

    Supreme Being

  • Members
  • PipPipPipPipPipPipPipPip
  • 1434 posts

Posted 03 November 2009 - 02:45 AM

Hello,

You are most welcome. :D

Happy FusionCharting.

Regards,
Madhumita Chakraborty

Follow us on [url="http://www.twitter.com/fusioncharts"]Twitter[/url] :)