Function allows the chart's Linear scale to be converted to a Log scale.

 

Syntax:

chart.AddLineLayer( , )

 

Parameter:

Description:

[LineMethod]

Not used.  However, when the Log option is enabled, enter a Zero or 1 in this field.

[Options]

Converts linear scale to a Log scale.

 

Example:

'  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'  Log Scale Line Chart Example
'  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'  Establish Scatter Chart image size
iChartWidth = 500   '  X-Axis Width
iChartHeight = 300   '  Y-Axis Height

 
'  Create a image
chart.NewXY( "Log Scale Line Chart Example", iChartWidth, iChartHeight )
'  Size the Scatter Dot Ploting area
chart.SetPlotArea( 30, 30, 40, 50 )  
 
'  Use Log Scale
chart.AddLineLayer( 0, "Log" )   ' <-- Converts Linear Scale to Log Scale
 
'  Generate Blue Color Value
ColorValue1 = ColorRGB( 255, 0, 0 )
'  Generate Green Color Value
ColorValue2 = ColorRGB( 0, 255, 0 )
'  Generate Red C0lor Value
ColorValue3 = ColorRGB( 0, 0, 255 )
 
'  Add Line data series 1
chart.AddLineSeries( AsSeries( Line1 ), 100, "Line1", ColorValue1 )
'  Add Line data series 2
chart.AddLineSeries( AsSeries( Line2 ), 100, "Line2", ColorValue2 )
'  Add Line data series 3
chart.AddLineSeries( AsSeries( Line3 ), 100, "Line3", ColorValue3 )
 
'  Create & Save this new chart as a file.
'  Always add a backSlash Character after "resultsReportPath"
chart.Make( test.resultsReportPath + "\" + "LogChartExample.png" )

Returns:

Line_Chart_3-Color_Log_Scale_Example 1-15-2013 3-40-21 PM

 

Links:

AsSeries, AddLineSeries, ColorRGB, Make, NewXY, resultsReportPath, SetPlotArea

See Also:

Chart

 


Edit Time: 9/25/2017 09:09:58 AM


Topic ID#: 124

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software