Bob Tiamsic

Fusion Charts, Line Chart does not have vertical lines

Recommended Posts

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

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

 

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

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