Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
230
Get brush color dynamically
posted

for column series how to get brush color dynamically based on it value set

<igx-column-series
                                        [brush]="getbrush($event.args)" outline="transparent"
                                        isTransitionInEnabled="true"
                                        transitionInMode="SweepFromBottom"
                                        transitionInDuration="400"
                                            [dataSource]="data.data" valueMemberPath="currentvalue" [xAxis]="xAxis"
                                            [yAxis]="yAxis" title="Total Revenue of Franchise"
                                            showDefaultTooltip="false" isTransitionedInEnabled="true"
                                            isHighlightingEnabled="true">
                                        </igx-column-series>
Parents
No Data
Reply
  • 230
    Offline posted

    any help on this current I want to change the brush color of the column chart based on it data let say I have 4 data

    public data = [
            { Franchise: "Marvel Universe All Films", TotalWorldBoxOfficeRevenue: 22.55, HighestGrossingMovieInSeries: 2.8 ,
    
    ,"brush" :"gray"
    
    }, { Franchise: "Star Wars", TotalWorldBoxOfficeRevenue: 10.32, HighestGrossingMovieInSeries: 2.07 ,"brush" :"red" }, { Franchise: "Harry Potter", TotalWorldBoxOfficeRevenue: 9.19, HighestGrossingMovieInSeries: 1.34
    
    ,"brush" :"red"
    
     }, { Franchise: "Avengers", TotalWorldBoxOfficeRevenue: 7.76, HighestGrossingMovieInSeries: 2.8 }, { Franchise: "Spider Man", TotalWorldBoxOfficeRevenue: 7.22, HighestGrossingMovieInSeries: 1.28 }, { Franchise: "James Bond", TotalWorldBoxOfficeRevenue: 7.12, HighestGrossingMovieInSeries: 1.11
    
    ,"brush" :"green"
    
    } ];

Children