aluvilayilanoop Report post Posted February 28, 2010 Hi i am new to fusion chart and please help me. what is the code for creating scroll charts in vb, i used this code but didn't work chartParameters = "caption=LOAD Vs TIME Graph;subcaption=Load vs Time;xAxisName=Time;yAxisName=Load;numberPrefix=;numVisiblePlot=6" and one more thing how can i draw a line in the graph in which the y axis value give from a text By the user Thanks Share this post Link to post Share on other sites
Guest Madhumita Report post Posted February 28, 2010 Hello, Welcome to FusionCharts Forum. FusionCharts has scrolling functionality for all the Scroll Charts. You do not require to enable the Scroll for these charts. ref. - http://www.fusioncharts.com/vb/docs/contents/ChartSS/ScrollColumn2D.html For taking in the value in the text field you need to reference the text field by its ID, retrieve its values, set it in the XML and then render the chart. I am attaching a simple JavaScript example which does the same. dynamicXML.zip Share this post Link to post Share on other sites
aluvilayilanoop Report post Posted February 28, 2010 Thanks Madhumita for the help, one more thing how can i draw a horizontal line in chart, i am using chart in windows application Share this post Link to post Share on other sites
Guest Madhumita Report post Posted February 28, 2010 Hello, You can use Trendlines to draw a horizontal line on the chart. ref. - http://www.fusioncharts.com/vb/docs/contents/AttDesc/Trend.html Share this post Link to post Share on other sites
aluvilayilanoop Report post Posted March 1, 2010 hi i am using this code Call FusionCharts1.Data.addTrendLine("startValue='" & Text1.Text & "' ; color=cc0000;displayValue=Highest ") but its not working and one more problem, Call FusionCharts1.Data.addTrendLine("startValue=1200; color=cc0000;displayValue=Lowest") if table data value is less than the trendline value then trend line is not showing thanks Share this post Link to post Share on other sites
Guest Madhumita Report post Posted March 1, 2010 (edited) Hello, Call FusionCharts1.Data.addTrendLine("startValue=1200; color=cc0000;displayValue=Lowest") if table data value is less than the trendline value then trend line is not showing >> This is a functionality of FusionCharts, if the maximum data plot value is less than the trendline value, then the trendline will not be shown until the yaxismaxvalue is set above the trendline value. Call FusionCharts1.Data.addTrendLine("startValue='" & Text1.Text & "' ; color=cc0000;displayValue=Highest ") but its not working >> Try using the code like this and see if this helps: FusionCharts1.Data.addTrendLine("startValue=" & Text1.Text & "; color=cc0000;displayValue=Highest ") Looking forward to your reply. Edited March 1, 2010 by Guest Share this post Link to post Share on other sites
aluvilayilanoop Report post Posted March 1, 2010 Thanks Madhumita for the help Share this post Link to post Share on other sites
Guest Madhumita Report post Posted March 1, 2010 Hey, You are most welcome. Happy FusionCharting. Share this post Link to post Share on other sites