Set series Z values (bubble sizes) from data stored in a single-dimension array (for Bubble charts).
void object.SetSeriesZValuesFromArray( int index, String[] values )
void object.SetSeriesZValuesFromArray( int index, int[] values )
void object.SetSeriesZValuesFromArray( int index, float[] values )
void object.SetSeriesZValuesFromArray( int index, double[] values )
Note: This method is available when manipulating Bubble data series required for displaying Bubble charts. Note that the Chart type (bubble, bar, column, line, etc) is defined in the Swiff Chart style file (.scs) which must be loaded via the LoadStyle method.
The data stored in the array must be numerical values.
If the index argument refers to a series that does not exist in the chart object, the series is created.
The following JSP code shows how to store the XY and Sizes values of the table below using the SetSeriesZValuesFromArray method. This table has one series named "Production". This series contains independant XY and Sizes values.
|
float[] array_x= new float[5]; float[] array_y= new float[5]; float[] array_z= new float[5]; array_x[0]= 1.0f; array_x[1]= 2.0f; array_x[2]= 3.0f; array_x[3]= 4.0f; array_x[4]= 5.0f; array_y[0]= 12.0f; array_y[1]= 7.5f; array_y[2]= 11.3f; array_y[3]= 9.2f; array_y[4]= 5.3f; array_z[0]= 456.0f; array_z[1]= 478.0f; array_z[2]= 314.0f; array_z[3]= 125.0f; array_z[4]= 265.0f; // Add the first series "Production" chart.SetSeriesCaption( 0, "Production" ); // Fill the first series with XY values stored in the array variables chart.SetSeriesXValuesFromArray( 0, array_x ); chart.SetSeriesYValuesFromArray( 0, array_y ); // Fill the first series with Bubble Size values stored in the array_z variable chart.SetSeriesZValuesFromArray( 0, array_z );
SetSeriesXValuesFromArray Method | SetSeriesYValuesFromArray Method | SetSeriesXValuesFromString Method | SetSeriesYValuesFromString Method | GetSeriesXValue Method | GetSeriesYValue Method | SetSeriesCaption Method
Applies To: Chart Object