JohnySK Posted May 3, 2022 Share Posted May 3, 2022 Hello, Is there some way how to change UniBar3dSeries.Brush.MaxBarWidth parameters and some others during runtime? I am creating the series on runtime. Thx for feedback. rocedure TchartTOP10.CreateSeries; var k: integer; begin with uniChart.SeriesList do for k := 0 to (iSeries - 1) do begin Insert(k, TUniBar3DSeries.Create(uniChart)); TUniBar3DSeries(Items[k]).Parent := uniChart; TUniBar3DSeries(Items[k]).Title := 'Station ' + IntToStr(k); TUniBar3DSeries(Items[k]).Stacked := false; end; end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 4, 2022 Share Posted May 4, 2022 13 hours ago, JohnySK said: Is there some way how to change UniBar3dSeries.Brush.MaxBarWidth parameters and some others during runtime? Hello, Try this: .. TUniBarChartBrush(TUniBar3DSeries(Items[k]).Brush).MaxBarWidth := xx; .. 1 Quote Link to comment Share on other sites More sharing options...
JohnySK Posted May 4, 2022 Author Share Posted May 4, 2022 Thank you it is working. Quote Link to comment Share on other sites More sharing options...
PS1 Posted January 29 Share Posted January 29 How would it be in mobile version ? TUniBarChartBrush(TUnimBarSeries(Items[k]).Brush).MaxBarWidth := 10; Doesn't work 😕 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 29 Share Posted January 29 1 hour ago, PS1 said: How would it be in mobile version ? Hello, Are you also creating it dynamically or what? Attach a test project if possible. Quote Link to comment Share on other sites More sharing options...
PS1 Posted January 29 Share Posted January 29 TestCase_chart.zip Here, By doing testcase i found that it doesn't work becouse some of my visual editing in clientevent->UniEvents->chart.beforeInit (written by you in another topic). Can you tell me how can i edit bar width and also have my visual editing ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 29 Share Posted January 29 4 minutes ago, PS1 said: written by you in another topic Yes, I understand, but these solutions were for the desktop, right? Quote Link to comment Share on other sites More sharing options...
PS1 Posted January 29 Share Posted January 29 Here is a topic. Yes, i think they were for desktop. But they work as expected in the mobile version too. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 29 Share Posted January 29 I will try to check. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 29 Share Posted January 29 5 hours ago, PS1 said: Can you tell me how can i edit bar width and also have my visual editing ? Try this approach: function chart.beforeInit(sender, config) { config.series[0].marker = false; // "#3498DB", config.series[0].renderer = function(a) { a.attr.maxBarWidth=10; }; ... 1 Quote Link to comment Share on other sites More sharing options...
PS1 Posted January 30 Share Posted January 30 That works, Thanks again ! 1 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.