Bob Tiamsic Report post Posted June 6, 2014 Hi. I am building a line chart using FusionChartsFree My line chart does not show verticalgridlines though I set vDivlineColor, vDivLineThickness Anyone who can solve my issue? Thanks! Thanks, Share this post Link to post Share on other sites
Bindhu Report post Posted June 6, 2014 Hi, Welcome to FusionCharts Forum Can you please share the XML data for testing purposes? Share this post Link to post Share on other sites
Bob Tiamsic Report post Posted June 6, 2014 Here it is, Im using C# to build string for DataString. assume that you have a database StringBuilder strXMLChart = new StringBuilder(); strXMLChart.Append("<chart caption='Summation of Ovetime Hours per Month' subcaption='Figure in Hours' showBorder='0' xAxisName='Month' yAxisName='Overtime in Hours' showValues='1' formatNumberScale='0' showBorder='1' canvasPadding='30'>"); for (i = 0; i <= dt.Rows.Count - 1; i++) { strXMLChart.AppendFormat("<set label='{0}' value='{1}' link='P-detailsPopUp,width=600,height=300,left=300,top=100,toolbar=no,scrollbars=no,resizable=yes-{2}'/>", dt.Rows[i]["MonthName_"].ToString(), dt.Rows[i]["TotalOTHrs"].ToString(), ("../ChartsDrillDown/AdminOvertimeDetails.aspx?Id=" + empno + "-" + dt.Rows[i]["MonthName_"].ToString())); } strXMLChart.Append("<styles><definition>"); strXMLChart.Append("<style name='lineBevel' type='bevel' distance='3' /><style name='myShadow' type='lineshadow' angle='45' distance='5'/>"); strXMLChart.Append("<style name='linetoolTip' type='font' font='Verdana' size='12' bold='1' />"); strXMLChart.Append("</definition><application>"); strXMLChart.Append("<apply toObject='Dataplot' styles='lineBevel,lineshadow' /><apply toObject='ToolTip' styles='lineTooltip' />"); strXMLChart.Append("</application></styles>"); strXMLChart.Append("</chart>"); Literal1.Text = FusionCharts.RenderChart("../FusionCharts/Line.swf", "", strXMLChart.ToString(), "chart1", "690", "300", false, true); Share this post Link to post Share on other sites
Sanjukta Report post Posted June 7, 2014 Here it is, Im using C# to build string for DataString. assume that you have a database StringBuilder strXMLChart = new StringBuilder(); strXMLChart.Append("<chart caption='Summation of Ovetime Hours per Month' subcaption='Figure in Hours' showBorder='0' xAxisName='Month' yAxisName='Overtime in Hours' showValues='1' formatNumberScale='0' showBorder='1' canvasPadding='30'>"); for (i = 0; i <= dt.Rows.Count - 1; i++) { strXMLChart.AppendFormat("<set label='{0}' value='{1}' link='P-detailsPopUp,width=600,height=300,left=300,top=100,toolbar=no,scrollbars=no,resizable=yes-{2}'/>", dt.Rows[i]["MonthName_"].ToString(), dt.Rows[i]["TotalOTHrs"].ToString(), ("../ChartsDrillDown/AdminOvertimeDetails.aspx?Id=" + empno + "-" + dt.Rows[i]["MonthName_"].ToString())); } strXMLChart.Append("<styles><definition>"); strXMLChart.Append("<style name='lineBevel' type='bevel' distance='3' /><style name='myShadow' type='lineshadow' angle='45' distance='5'/>"); strXMLChart.Append("<style name='linetoolTip' type='font' font='Verdana' size='12' bold='1' />"); strXMLChart.Append("</definition><application>"); strXMLChart.Append("<apply toObject='Dataplot' styles='lineBevel,lineshadow' /><apply toObject='ToolTip' styles='lineTooltip' />"); strXMLChart.Append("</application></styles>"); strXMLChart.Append("</chart>"); Literal1.Text = FusionCharts.RenderChart("../FusionCharts/Line.swf", "", strXMLChart.ToString(), "chart1", "690", "300", false, true); Hi, Could you please try using the attributes "numVDivLines", "vDivlineColor", "vDivLineThickness", etc. in the <chart> element of your XML data? <chart ... numVDivLines='3' vDivlineColor='FF0000' vDivLineThickness='3' > Hope this helps. Share this post Link to post Share on other sites