i want print out graph to use INFRAGISTICS's React Bar Chart
like these picture.
but i can't modify component to print out graph
i need help
Hello,
Sorry for having kept you waiting and thank you for the patience.
In order to change the color of a specific bar to some others, you may want to set true to isCustomCategoryStyleAllowed and a function to assigningCategoryStyle in IgrBarSeries. And in the function, write your code to customize the color:
<IgrDataChart ...> ... <IgrBarSeries ... isCustomCategoryStyleAllowed="true" assigningCategoryStyle={this.onAssigningCategoryStyle} /> ... </IgrDataChart>
onAssigningCategoryStyle = (s: IgrCategorySeries, e: IgrAssigningCategoryStyleEventArgs) => { if(e.getItems(e.startIndex, e.endIndex)[0].Score >= 80){ e.fill = "lightgreen"; e.stroke = "green"; } else if(e.getItems(e.startIndex, e.endIndex)[0].Score >= 50){ e.fill = "lightyellow"; e.stroke = "yellow"; } else { e.fill = "pink"; e.stroke = "red"; } }