amdy789 Report post Posted August 11, 2009 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
Rahul Kumar Report post Posted August 12, 2009 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
amdy789 Report post Posted August 12, 2009 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
Rahul Kumar Report post Posted August 12, 2009 Hi Amdy, I am afraid, it is not supported with arrays as of now. Share this post Link to post Share on other sites
amdy789 Report post Posted August 12, 2009 Thank you. I have found a reference in your docs: http://www.fusioncharts.com/docs/Contents/AttDesc/VLines.html Is linePosition='0' is supported by the VB version? I tried adding it, but it makes no difference - the vertical line is still drawn between data points. Share this post Link to post Share on other sites
Guest Rajroop Report post Posted August 13, 2009 Hi Amdy, Could you specify which chart you're using? Looking forward to your reply. Share this post Link to post Share on other sites
amdy789 Report post Posted August 17, 2009 Hi Rajroop, It is msarea2d Thank you Share this post Link to post Share on other sites
Guest Rajroop Report post Posted August 18, 2009 Hello, I'm afraid the FusionCharts for VB does not support linePosition attribute, as of now. Share this post Link to post Share on other sites