mhmda Posted January 5, 2013 Share Posted January 5, 2013 How can use unichart with data from query or table ? Thanx, Quote Link to comment Share on other sites More sharing options...
patmap Posted January 5, 2013 Share Posted January 5, 2013 Hi See uniGUI\Demos\ChartDemo All Charts get data from StringGrid1. Then you can read data from table or query and add to Chart. Regards Quote Link to comment Share on other sites More sharing options...
mhmda Posted January 5, 2013 Author Share Posted January 5, 2013 Ok, but i have another problem: When I create a new unigui project and add a unichart component on the main form and compile I get error: "can't find chart.dcu file" how can i solve it? Quote Link to comment Share on other sites More sharing options...
patmap Posted January 5, 2013 Share Posted January 5, 2013 Ok, but i have another problem: When I create a new unigui project and add a unichart component on the main form and compile I get error: "can't find chart.dcu file" how can i solve it? Hi, Find Chart in uses list and replace with VclTee.Chart where you see this error. Regards Quote Link to comment Share on other sites More sharing options...
mhmda Posted January 5, 2013 Author Share Posted January 5, 2013 Thanks, and last question how can I customize bars (colors) in the web display. Quote Link to comment Share on other sites More sharing options...
patmap Posted January 5, 2013 Share Posted January 5, 2013 Hi Bar colors are actually determined by the chart's theme: Quote Link to comment Share on other sites More sharing options...
mhmda Posted January 6, 2013 Author Share Posted January 6, 2013 Where I put this code to change bar's color: var colors = ['rgb(47, 162, 223)','rgb(60, 133, 46)']; Ext.chart.theme.fancy = Ext.extend(Ext.chart.theme.Base, { constructor: function(config) { Ext.chart.theme.Base.prototype.constructor.call(this, Ext.apply({ colors: colors }, config)); } }); and How I link this theme 'fancy' to the chart ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.