I am not a stupid person so even I a total newbie can follow these directions. Lazarus will now recompile itself and restart. When the Package Editor opens, click on Use->Install.
Unpack the source code archive into some suitable permanent location, as described above, and open the dclibx.lpk package description file using the Package->Open Package File menu item to open the file.
The install for IBX is fairly straight forward. Every time I turn around I have to spend hours and hours trying to work out why things don't work. My overall frustration with Lazarus as a tool is reaching a boiling point. Set the x, y and z axis titles using deep blue (000088) 15 points Arial font call c.tTitle( "Date/Time Axis", "ariali.ttf", f* 15, &h000088)Ĭall c.tTitle( "Label"+EndOfLine.unix+ "Based"+EndOfLine.unix+ "Axis", "ariali.ttf", f* 15, &h000088)Ĭall c.tTitle( "Numeric Axis", "ariali.I just have to say this. Set label style to Arial bold for all axes call c.tLabelStyle( "arialbd.ttf",f* 8)Ĭall c.tLabelStyle( "arialbd.ttf",f* 8)Ĭall c.tLabelStyle( "arialbd.ttf",f* 8)Ĭall c.tLabelStyle( "arialbd.ttf",f* 8)
Add a bounding box with light grey (eeeeee) background and grey (888888) // border.ĬtBoundingBox( &heeeeee, &h888888,f) dim cAxis as CDColorAxisMBS = c.setColorAxis(f* 95, f* 100, c.kTopRight, f* 160, c.kLeft) Set the length to 160 pixels and the labels on the left side. Add a color axis (the legend) in which the top right corner is anchored at // (95, 100).
Set contour lines to the same color as the fill color at the contour level call c.setContourColor(c.kSameAsMainColor) Set surface grid lines to semi-transparent black (cc000000). ChartDirector auto-scaling will use this // as the guideline when putting ticks on the x-axis.Ĭ.tLinearScale 20, 55, 5 // Spline interpolate data to a 80 x 40 grid for a smooth surface Set the y-axis labels call c.tLabels(dataY) For the z data // series, they are just the concatenation of the individual data series. As the y-data are text strings // (enumerated), we will use an empty array for the y-coordinates. Next dim data2(- 1) as double // Set the data to use to plot the chart. Set the elevation and rotation angles to 30 and -10 degreesĭim dataz(- 1) as double dim count as integer Add a title to the chart using 18 points Arial font call c.addTitle( "Surface Chart Axis Types", "Arial", f* 18) Create a SurfaceChart object of size 760 x 500 pixels dim c as new CDSurfaceChartMBS(f* 760, f* 500)
Const f= 2 // scale factor, 1 for screen and 4 or more for printing // The x and y coordinates of the grid dim dataX(- 1) as doubleĭataX.Append CDBaseChartMBS.chartTime( 2008, 9, 1)ĭataX.Append CDBaseChartMBS.chartTime( 2008, 9, 2)ĭataX.Append CDBaseChartMBS.chartTime( 2008, 9, 3)ĭataX.Append CDBaseChartMBS.chartTime( 2008, 9, 4)ĭataX.Append CDBaseChartMBS.chartTime( 2008, 9, 5)ĭataX.Append CDBaseChartMBS.chartTime( 2008, 9, 6)ĭim dataY(- 1) as string = array( "Low", "Medium", "High")