andreyka Posted May 2, 2018 Share Posted May 2, 2018 How I can change colors of any TUniChart series? I try to change brush.color property on any series in ChartDemo but it does not work Colors stay default build 1.10.0.1453 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 2, 2018 Administrators Share Posted May 2, 2018 For some series you need to Uncheck default color property Sent from my SM-N950F using Tapatalk Quote Link to comment Share on other sites More sharing options...
andreyka Posted May 2, 2018 Author Share Posted May 2, 2018 For some series you need to Uncheck default color property When I uncheck default property on first series then color of this series filled all other series on this chart. And I have another problem - colors in legend stayed old. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 2, 2018 Share Posted May 2, 2018 Hi, Which Series are you using? Quote Link to comment Share on other sites More sharing options...
andreyka Posted May 2, 2018 Author Share Posted May 2, 2018 Hi, Which Series are you using? Hi Now I try to use barseries. But in my project there are place for any series Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 2, 2018 Share Posted May 2, 2018 Please report to support portal. Can you try to use "colors" config for now? function chart.beforeInit function chart.beforeInit(sender, config) { config.colors = ["yellow", "red", "green", "#556677"] } 1 Quote Link to comment Share on other sites More sharing options...
andreyka Posted May 2, 2018 Author Share Posted May 2, 2018 Please report to support portal. Can you try to use "colors" config for now? function chart.beforeInit function chart.beforeInit(sender, config) { config.colors = ["yellow", "red", "green", "#556677"] } it works well Thank you Quote Link to comment Share on other sites More sharing options...
andreyka Posted May 2, 2018 Author Share Posted May 2, 2018 as I understand if some features are unimplemented I need use expansions via extjs. But because I do not have experience in extjs I have a big problem with a possibly trivial setting like setting the header height of chart. Maybe You have a little dictionary for newbies in UniGUI with explain how I can solve my tasks without many questions? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 2, 2018 Administrators Share Posted May 2, 2018 as I understand if some features are unimplemented I need use expansions via extjs. But because I do not have experience in extjs I have a big problem with a possibly trivial setting like setting the header height of chart. Maybe You have a little dictionary for newbies in UniGUI with explain how I can solve my tasks without many questions? Ext JS is a UI framework. We have tried to implement as much as properties we have which we believe are important for common usage. It is the key to try to use default framework settings. Not all pieces of Ext JS are configurable unless you play with CSS code of the theme. It is not recommended because as soon as you switch to a new theme all your changes will become meaningless. Sometimes changing a trivial settings such as panel header height can have other side effects which will need to be corrected using another CSS code. If you want to have a full control on Ext JS you need to use Sencha Ext JS API: http://docs.sencha.com/extjs/6.5.3/classic/Ext.html http://docs.sencha.com/extjs/6.5.3/modern/Ext.html Quote Link to comment Share on other sites More sharing options...
Vision Posted June 5, 2018 Share Posted June 5, 2018 HiI'm trying to following your tip.My unigui version is 1.10.0.1460. Just for test I'm using unigui example 'C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\ChartDemo'. 1) I removed default settings and keep clWhite on brush color property For some series you need to Uncheck default color propertySent from my SM-N950F using Tapatalk I set up color via before init Please report to support portal. Can you try to use "colors" config for now? function chart.beforeInit function chart.beforeInit(sender, config) { config.colors = ["yellow", "red", "green", "#556677"] }My problem is that the third line series seem disappearing. It seem a repaint issues.. I have no idea but is quite evident.More precisely the marker are always visible but the segment between every marker disappear.Any idea? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 6, 2018 Share Posted June 6, 2018 Hello, Which edition are you using? Quote Link to comment Share on other sites More sharing options...
Vision Posted June 6, 2018 Share Posted June 6, 2018 FMSoft unigui complete - Professional edition v1.10.0.1460 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 6, 2018 Share Posted June 6, 2018 First of all, please adjust you forum email address: http://forums.unigui.com/index.php?/topic/6291-new-users-please-adjust-your-forum-email-address/ Quote Link to comment Share on other sites More sharing options...
Vision Posted June 6, 2018 Share Posted June 6, 2018 changed mail.. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 6, 2018 Share Posted June 6, 2018 changed mail.. but, I don't see the changes I set up color via before init Are you sure that chose the correct event? Quote Link to comment Share on other sites More sharing options...
Vision Posted June 6, 2018 Share Posted June 6, 2018 I'm sure that i'm handling the rigth event. again: -i have modified an original unigui example: C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\ChartDemo' - unchecked default setting in color. -on unichart1>Properties>ClientEvents>UniEvents>Ext.chart.cartesianChart[chart]> function chart.beforeInit(sender, config) { config.colors = ['yellow', 'red', 'green'] } What am I doing wrong? Quote Link to comment Share on other sites More sharing options...
Vision Posted June 7, 2018 Share Posted June 7, 2018 up Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 7, 2018 Share Posted June 7, 2018 Sorry, can you make a simple testcase for this?! Quote Link to comment Share on other sites More sharing options...
Vision Posted June 8, 2018 Share Posted June 8, 2018 Sorry, can you make a simple testcase for this?! I'm sure that i'm handling the rigth event. again: -i have modified an original unigui example: C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\ChartDemo' - unchecked default setting in color. -on unichart1>Properties>ClientEvents>UniEvents>Ext.chart.cartesianChart[chart]> function chart.beforeInit(sender, config) { config.colors = ['yellow', 'red', 'green'] } What am I doing wrong? drop box link with the example modified: https://www.dropbox.com/s/swuffkg6u9irxk7/ChartDemo.7z?dl=0 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 8, 2018 Share Posted June 8, 2018 Hi, Can you set all "Default"s to true and try to use above config?! function chart.beforeInit(sender, config) { config.colors = ['yellow', 'red', 'green'] } Quote Link to comment Share on other sites More sharing options...
Vision Posted June 8, 2018 Share Posted June 8, 2018 For some series you need to Uncheck default color property Sent from my SM-N950F using Tapatalk It seems the opposite Hi, Can you set all "Default"s to true and try to use above config?! function chart.beforeInit(sender, config) { config.colors = ['yellow', 'red', 'green'] } Anyway it works! :-) tnks so much Quote Link to comment Share on other sites More sharing options...
Tokay Posted August 9, 2018 Share Posted August 9, 2018 Is it possible to change color of TUniGaugeSeries? I try to do it, but wothout seccess. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 10, 2018 Share Posted August 10, 2018 Is it possible to change color of TUniGaugeSeries? I try to do it, but wothout seccess. TUniGaugeSeries -> Colors = [TStrings] DefaultColors = False Quote Link to comment Share on other sites More sharing options...
Tokay Posted August 10, 2018 Share Posted August 10, 2018 I try to change Colors, but nothing was changed. Default settings: #0000FF #00FF00 #FF0000 #00FFFF #FFFF00 #FF00FF I changed to: #1000FF #10FF00 #1F0000 #10FFFF #1FFF00 #1F00FF but the gauge looks same (DefaultColors = False everyehere) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 10, 2018 Share Posted August 10, 2018 Please can you make a simple testcase for this? 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.