I made a real-time display of the AChartEngine curve two days ago and learned some basic AChartEngine usage. Now I will record the XYMultipleSeriesRenderer style attribute description and share it with you.
[Java]
XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer ();
Renderer. setChartTitle (depid + "Room No." + type + "real-time curve"); // Title
Renderer. setChartTitleTextSize (20 );
Renderer. setXTitle (); // description of the X axis
Renderer. setAxisTitleTextSize (16 );
Renderer. setAxesColor (Color. BLACK );
Renderer. setLabelsTextSize (); // The font size of the number axis scale.
Renderer. setLabelsColor (Color. BLACK );
Renderer. setLegendTextSize (); // curve description
Renderer. setXLabelsColor (Color. BLACK );
Renderer. setYLabelsColor (0, Color. BLACK); http://download.csdn.net/detail/best198706/5351956
Renderer. setMargins (new int [] {20, 30,100, 0 });
XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer ();
Renderer. setChartTitle (depid + "Room No." + type + "real-time curve"); // Title
Renderer. setChartTitleTextSize (20 );
Renderer. setXTitle (); // description of the X axis
Renderer. setAxisTitleTextSize (16 );
Renderer. setAxesColor (Color. BLACK );
Renderer. setLabelsTextSize (); // The font size of the number axis scale.
Renderer. setLabelsColor (Color. BLACK );
Renderer. setLegendTextSize (); // curve description
Renderer. setXLabelsColor (Color. BLACK );
Renderer. setYLabelsColor (0, Color. BLACK); http://download.csdn.net/detail/best198706/5351956
Renderer. setMargins (new int [] {20, 30,100, 0 });
[Java]
XYSeriesRenderer r = new XYSeriesRenderer ();
R. setColor (Color. BLUE );
R. setChartValuesTextSize (15 );
R. setChartValuesSpacing (2 );
R. setPointStyle (PointStyle. CIRCLE );
R. setFillPoints (true );
Renderer. addSeriesRenderer (r); // load curve information. r is the XYSeriesRenderer object.
Renderer. setMarginsColor (Color. WHITE );
Renderer. setPointSize (1.5f );
Renderer. setYLabels (10 );
Renderer. setPanEnabled (false, false); // whether the curve is slidable.
Renderer. setShowGrid (true );
Renderer. setYAxisMax (hlim); // The maximum number of axes.
Renderer. setYAxisMin (llim); // minimum number of axes