jahlxx Posted September 30, 2016 Share Posted September 30, 2016 Hi. I'm starting with unichart. I've 2 questions: - When I click in one leyend, the pie corresponding to that leyeng disapears fom the pie chart. why? - I'd like to put the legend in the "legend zone", and put the values in the pie's of the pie chart, not the same legend. Some help whith this, please. Thanks. Link to comment Share on other sites More sharing options...
Sherzod Posted September 30, 2016 Share Posted September 30, 2016 - When I click in one leyend, the pie corresponding to that leyeng disapears fom the pie chart. why? Hi, Yes, this is the default behavior in ExtJS For disable this behavior, for now can you try this?!: 1. In MainForm.Script add this: Ext.onReady(function() { Ext.chart.LegendItem.override({ onMouseDown: function() { var me = this; if (me.legend.enableItemEvents !== false) { me.callParent(arguments); } } }) }) 2. UniChart -> ClientEvents -> UniEvents -> Ext.chart.Chart [chart] add chart.beforeInit fn: function chart.beforeInit(sender, config) { config.legend.enableItemEvents = false } Best regards. Link to comment Share on other sites More sharing options...
jahlxx Posted September 30, 2016 Author Share Posted September 30, 2016 Ok. Thanks. It works. Link to comment Share on other sites More sharing options...
irpans Posted October 28, 2016 Share Posted October 28, 2016 Hi Can you info me how to connect chart with database? Link to comment Share on other sites More sharing options...
jahlxx Posted October 28, 2016 Author Share Posted October 28, 2016 Hi. I don't know what you mean. Really there is not direct connection between chart and database. I have a dataset, go across the rows of the dataset, adding values to one serie of the chart. that's all. Link to comment Share on other sites More sharing options...
Abaksoft Posted October 26, 2017 Share Posted October 26, 2017 Hello irpans, Yes you can Unigui actually implemented DataSource only in UniBarSerie if you want it for PieSeries, or else you have to add . DataSource manually : begin UniPieSeries1.DataSource:=DataSource1; UniPieSeries1.XLabelsSource:= YourField_NameX; // a String UniPieSeries1.YValues.ValueSource:= YourField_NameY; // a String UniChart1.BeginUpdate; UniChart1.RefreshData; UniChart1.EndUpdate; end; Regards. Link to comment Share on other sites More sharing options...
irpans Posted November 20, 2019 Share Posted November 20, 2019 thanks Abaksoft, your really help... Link to comment Share on other sites More sharing options...
irpans Posted November 20, 2019 Share Posted November 20, 2019 On 10/26/2017 at 9:21 PM, Abaksoft said: Hello irpans, Yes you can Unigui actually implemented DataSource only in UniBarSerie if you want it for PieSeries, or else you have to add . DataSource manually : begin UniPieSeries1.DataSource:=DataSource1; UniPieSeries1.XLabelsSource:= YourField_NameX; // a String UniPieSeries1.YValues.ValueSource:= YourField_NameY; // a String UniChart1.BeginUpdate; UniChart1.RefreshData; UniChart1.EndUpdate; end; Regards. hi Sir, Still got error for this script.. [dcc32 Error] Main.pas(257): E2003 Undeclared identifier: 'DataSource', please advice Link to comment Share on other sites More sharing options...
Sherzod Posted November 20, 2019 Share Posted November 20, 2019 34 minutes ago, irpans said: hi Sir, Still got error for this script.. [dcc32 Error] Main.pas(257): E2003 Undeclared identifier: 'DataSource', please advice Hello, Can you please specify, which edition and build of UniGUI are you using? Link to comment Share on other sites More sharing options...
irpans Posted November 20, 2019 Share Posted November 20, 2019 Just now, Sherzod said: Hello, Can you please specify, which edition and build of UniGUI are you using? Hi Sherzod, still using old version ( 0.99) Link to comment Share on other sites More sharing options...
Sherzod Posted November 20, 2019 Share Posted November 20, 2019 Sorry, Why?! You need to upgrade to the latest builds. Link to comment Share on other sites More sharing options...
irpans Posted November 28, 2019 Share Posted November 28, 2019 On 11/20/2019 at 2:45 PM, Sherzod said: Sorry, Why?! You need to upgrade to the latest builds. noted, thanks i will update it Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now