![xojo newline xojo newline](https://codepad.co/img/snippets/KHFs6GpO.png)
LegendEntry = "" + dataSet.getLegendIcon + " " + dataName + ": " + s + "" Configure x-axis label format call c.tMultiFormat(CDBaseChartMBS.StartOfYearFilter, "") Set axis label style to 8pts Arial Bold call c.tLabelStyle( "arialbd.ttf", 8)Ĭall c.tLabelStyle( "arialbd.ttf", 8)Ĭ.tColors(CDBaseChartMBS.kTransparent)Ĭ.tColors(CDBaseChartMBS.kTransparent) Set legend icon style to use line style icon, sized for 8pt font call c.setPlotArea( 50, 55, c.getWidth - 70, c.getHeight - 90, c.linearGradientColor( 0, 55, 0, c.getHeight - 35, &hf0f6ff, &ha0c0ff), - 1, CDBaseChartMBS.kTransparent, &hffffff, &hffffff) Set border to transparent and grid lines to white (ffffff). Use a vertical gradient from light blue (f0f6ff) to sky blue (a0c0ff) // as background. Set the plotarea at (50, 55) with width 70 pixels less than chart width, and height 90 pixels // less than chart height. Add a title to the chart using 18 pts Times New Roman Bold Italic font call c.addTitle( " Product Line Global Revenue", "timesbi.ttf", 18) Create a XYChart object of size 640 x 400 pixels
#Xojo newline series#
For demo purpose, we use a dash // line color for the last line call layer.addDataSet(data0, &hff0000, "Server #1")Ĭall layer.addDataSet(data1, &h008800, "Server #2")Ĭall layer.addDataSet(data2, c.dashLineColor( &h3333ff, c.// Data for the chart as 3 random data series dim r as new CDRanSeriesMBS( 127)ĭim data0(- 1) as double = r.getSeries( 100, 100, - 15, 15)ĭim data1(- 1) as double = r.getSeries( 100, 150, - 15, 15)ĭim data2(- 1) as double = r.getSeries( 100, 200, - 15, 15)ĭim timeStamps(- 1) as double = r.getDateSeries( 100, CDBaseChartMBS.chartTime( 2011, 1, 1), 86400, false) Add the three data sets to the line layer. Set the default line width to 2 pixels
![xojo newline xojo newline](https://i.ibb.co/ncZ446J/2019-07-13-08-37-13.jpg)
Add a line layer to the chart dim layer as CDLineLayerMBS Add a title to the x axis call c.tTitle( "Jun 12, 2006") Display 1 out of 3 labels on the x-axis. Add a title to the y axis call c.tTitle( "MBytes per hour")
![xojo newline xojo newline](https://www.mbsplugins.de/image/AutoCompleteIE.jpg)
call c.addTitle( "Application Server Throughput", "timesbi.ttf", 15).setBackground( &hccccff, &h000000, c.glassEffect) white (0xffffff) on a dark red // (0x800000) background, with a 1 pixel 3D border. Add a title box to the chart using 15 pts Times Bold Italic font, on a light // blue (CCCCFF) background with glass effect. Set the background and border color to Transparent.Ĭ.addLegend( 50, 30, false, "arialbd.ttf", 9).setBackground(c.kTransparent) Add a legend box at (50, 30) (top of the chart) with horizontal layout. Turn on both horizontal and vertical grid lines with light grey // color (0xcccccc) call c.setPlotArea( 55, 58, 520, 195, &hffffff, - 1, - 1, &hcccccc, &hcccccc) Set the plotarea at (55, 58) and of size 520 x 195 pixels, with white // background. Create an XYChart object of size 600 x 300 pixels, with a light blue (EEEEFF) // background, black border, 1 pxiel 3D border effect and rounded corners dim c as new CDXYChartMBS( 600, 300, &heeeeff, &h000000, 1)