Sign in to follow this  
Rahul Kumar

FC for VB: how to add vertical lines

Recommended Posts

Hi All,

 

 

 

How can I add a vertical line via VB?

 

 

 

If I use

 

 

 

myChart.Data.Add.addVLine ("...."),

 

 

 

what is a syntax to position a vertical line on X-axis?

 

 

 

Please, help

 

 

 

Thanks

Share this post


Link to post
Share on other sites

Hi Amdy,

 
You would need to use vline as follow:
 
For Single Series Chart:
 
 
  FusionCharts1.Data.addChartData "10"

  FusionCharts1.Data.addVLine ("color=FF5904;thickness=2")

  FusionCharts1.Data.addChartData "10"

  FusionCharts1.Data.addVLine ("color=FF5904;thickness=2")

  FusionCharts1.Data.addChartData "10"

  FusionCharts1.Data.addVLine ("color=FF5904;thickness=2")

  FusionCharts1.Data.addChartData "10"

 

  FusionCharts1.RenderChart

 
For Multi-Series Chart:
 
  FusionCharts1.Data.addCategory ("cat-1")

  FusionCharts1.Data.addVLine ("color=FF5904;thickness=2")

  FusionCharts1.Data.addCategory ("cat-2")

  FusionCharts1.Data.addVLine ("color=FF5904;thickness=2")

  FusionCharts1.Data.addCategory ("cat-3")

  FusionCharts1.Data.addVLine ("color=FF5904;thickness=2")

 

  FusionCharts1.Data.addDataset "series-1"

  FusionCharts1.Data.addChartData "10"

  FusionCharts1.Data.addChartData "10"

  FusionCharts1.Data.addChartData "10"

 

  FusionCharts1.Data.addDataset "series-2"

  FusionCharts1.Data.addChartData "20"

  FusionCharts1.Data.addChartData "20"

  FusionCharts1.Data.addChartData "20"

 

  FusionCharts1.RenderChart

 
 

Share this post


Link to post
Share on other sites

Rahul,

 

 

 

Thank you. What happens if I use arrays to populate data?

 

 

 

arrCatName(0) = "First"

 

arrCatName(1) = "Second"

 

arrCatName(2) = "Third"

 

arrCatName(3) = "Fourth"

 

 

 

myChart.Data.addChartDataFromArray(arrDataArray, arrCatName)

 

 

 

Is it possible to add VLines vi arrays?

 

 

 

Thanks

Share this post


Link to post
Share on other sites
Guest Rajroop

Hi Amdy,

 

 

 

Could you specify which chart you're using?

 

 

 

Looking forward to your reply. :D

Share this post


Link to post
Share on other sites
Guest Rajroop

Hello,

I'm afraid the FusionCharts for VB does not support linePosition attribute, as of now. :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this