jahlxx Posted September 30, 2016 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. Quote
Sherzod Posted September 30, 2016 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. Quote
irpans Posted October 28, 2016 Posted October 28, 2016 Hi Can you info me how to connect chart with database? Quote
jahlxx Posted October 28, 2016 Author 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. Quote
Abaksoft Posted October 26, 2017 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. Quote
irpans Posted November 20, 2019 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 Quote
Sherzod Posted November 20, 2019 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? Quote
irpans Posted November 20, 2019 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) Quote
Sherzod Posted November 20, 2019 Posted November 20, 2019 Sorry, Why?! You need to upgrade to the latest builds. Quote
irpans Posted November 28, 2019 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 Quote
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.