Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Chart Control
  New Posts New Posts RSS Feed - ChartFastSeriesLineStyle
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ChartFastSeriesLineStyle

 Post Reply Post Reply
Author
Message
prounds View Drop Down
Newbie
Newbie


Joined: 04 January 2011
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote prounds Quote  Post ReplyReply Direct Link To This Post Topic: ChartFastSeriesLineStyle
    Posted: 21 February 2012 at 5:02pm
I'm trying to create a graph with the diagram style ChartFastSeriesLineStyle (solely to avoid the data point labels, is there a way to eliminate those in a diagram of type ChartSeriesLineStyle?), working in C#, XtremeChartPro 1.14.1
 
A portion of the graph appears, but with the default axis limits, even though I've specified them in the code:

            XtremeChartControl.ChartFastLineSeriesStyle LineStyle =
                                  new XtremeChartControl.ChartFastLineSeriesStyle();
          
            if (this.axCC_Presentation.Content.Series.Count > 0)
                            axCC_Presentation.Content.Series.DeleteAll();
            axCC_Presentation.Content.Titles.DeleteAll();
               XtremeChartControl.ChartSeries dataSeries;
            dataSeries = axCC_Presentation.Content.Series.Add("Raw Data");
            for (int i = 0; i < this.dataForAnalysis.Count; i++)
            {
                PermData pd = (PermData)dataForAnalysis;
                dataSeries.Points.Add(pd.Time, pd.Volts);
            }
          
            axCC_Presentation.Content.Series[0].Style = (XtremeChartControl.ChartSeriesStyle)  LineStyle;
           XtremeChartControl.ChartDiagram2D  Diagram
               = (XtremeChartControl.ChartDiagram2D) axCC_Presentation.Content.Series[0].Diagram;
           Diagram.AxisX.AllowZoom = true;
           Diagram.AxisY.AllowZoom = true;
           Diagram.AxisY.Range.MinValue = -10;
           Diagram.AxisY.Range.MaxValue = 10;
           Diagram.AxisX.Range.MinValue = 0;
           Diagram.AxisX.Range.MaxValue = 25;
           Diagram.AxisY.Visible = true;
           Diagram.AxisY.Thickness = 1;
           Diagram.AxisX.Visible = true;
           Diagram.AxisX.Thickness = 1;
           Diagram.AxisX.TickMarks.Length = 5;
           Diagram.AxisX.TickMarks.Thickness = 1;
           Diagram.AxisX.TickMarks.Visible = true;
           Diagram.AxisY.TickMarks.Thickness = 1;
           Diagram.AxisY.TickMarks.Length = 5;
           Diagram.AxisY.TickMarks.Visible = true;
 
Even though I've explicitly set the X & Y Axis , it still defaults to the ranges dictated by the first data point.
 
Anyone got any ideas?
 
Thanks
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.