User (Legacy) Posted September 20, 2004 Report Share Posted September 20, 2004 Hi I have recently upgrade to ChartFX 6.2. I was told that data driven labels were available in 6.2 and that they could help me solve the problem I am having below. How does a data driven label work and how would I set the following: chart.DataType.Item(0) = SoftwareFX.ChartFX.DataType.??????? thanks kevin I am trying to created a bar chart and assign Date/Time information to the Xaxis so that I can modify it at a later using the Javascript below. The VB.NET code below works fine if the chart is a line graph however when I set it to a bar graph I end up with the dates starting at 1900-01-01. If however I set the DataType to a Label the dates show up fine in the Bar chart however, I can't modify them with my Javascript. I need correct dates on a bar graph and the ability to modify them later. VB.NET CODE chart.DataType.Item(0) = SoftwareFX.ChartFX.DataType.XValue 'Date time values chart.DataType.Item(1) = SoftwareFX.ChartFX.DataType.Value 'Data values chart.Gallery = SoftwareFX.ChartFX.Gallery.Bar chart.SerLegBox = False createCopyrightTitle(chart) configureAxisY("m3", SoftwareFX.ChartFX.AxisFormat.Number, 0, chart) configureAxisX("Date", SoftwareFX.ChartFX.AxisFormat.Date, "yyyy-MM-dd", chart) JAVASCRIPT profile.Chart.Chart.AxisX.LabelsFormat.Format = 8; profile.Chart.Chart.AxisX.LabelsFormat.CustomFormat = "yyyy-MM-dd HH:mm"; adjustLeftGap(true); ---------------------------------------------------------------------------- ---- Link to comment Share on other sites More sharing options...
Software FX Posted September 20, 2004 Report Share Posted September 20, 2004 chart.DataType.Item(0) = SoftwareFX.ChartFX.DataType.XValue Which is the default, so you can in fact remove this line. Data-driven labels will kicks in when using a chart type that is NOT an X/Y chart (e.g. Bars) but yet X-Values are provided. -- FP Software FX Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.