Yes, our ChartDirector plugin works just fine on the Xojo Web Edition.
Example
// The data for the pie chart Var data(-1 ) as Double=array(55.0 , 18.0 , 25.0 , 22.0 , 18.0 , 30.0 , 35.0 )// The labels for the pie chart, Words are choosen random to check font! Var labels(-1 ) as string=array("Germany" ,"Italy" ,"France" ,"Spain" ,"UK" ,"Poland" ,"Russia" )// The colors to use for the sectors Var colors(-1 ) as Integer colors.Append &h66aaee colors.Append &heebb22 colors.Append &hbbbbbb colors.Append &h8844ff if TargetLinux then CDBaseChartMBS .SetFontSearchPath "/usr/share/fonts/truetype/msttcorefonts" end if // Create a PieChart object of size 360 x 300 pixels Var c as new CDPieChartMBS (700 , 600 ) c.setBackground(c.linearGradientColor(0 , 0 , 0 , c.getHeight(), &h0000cc , &h000044 )) c.setRoundedFrame(&hffffff , 16 )Var tt as CDTextBoxMBS = c.addTitle("ChartDirector Demonstration" , "timesbi.ttf" , 18 ) tt.setMargin(0 , 0 , 16 , 0 ) tt.setFontColor(&hFFFFFF )// Set the center of the pie at (180, 140) and the radius to 100 pixels c.setPieSize 350 ,300 ,150 // Set the sector colors c.setColors(c.kDataColor, colors)// Draw the pie in 3D with a pie thickness of 20 pixels c.set3D(20 )Var t as CDTextBoxMBS = c.setLabelStyle("arialbd.ttf" , 10 , &h000000 ) t.setBackground(CDPieChartMBS .kSameAsMainColor, CDPieChartMBS .kTransparent, CDPieChartMBS .softLighting(CDPieChartMBS .kRight, 0 )) t.setRoundedCorners(8 )// Use local gradient shading for the sectors, with 5 pixels wide // semi-transparent white (bbffffff) borders c.setSectorStyle(CDPieChartMBS .kLocalGradientShading, &hbbffffff , 0 )// Set the pie data and the pie labels c.setData data,labelscall c.setLabelStyle "arialbd.ttf" ,18 Var pic as picture = c.makeChartPictureVar wp as new WebPicture(pic, Picture.FormatJPEG) // JPEG makes it smaller and faster ImageView1.Picture=wp
Be aware that our plugin produces pictures for you, which you assign to ImageViews. Transferring those pictures takes time, so you can optimize that with using WebPicture class. There you can decide between different compressions to improve speed (use JPEG instead of PNG).
e.g. if you use ubuntu, you can install the ttf-mscorefonts-installer package and call this method with "/usr/share/fonts/truetype/msttcorefonts" as the path. No backslash on the end of a path, please.