css - Primefaces 5.0 Chart Customization -


I have a problem creating a custom P: chart type = "pie" canvas.

I have to change the background color of the pie chart, such as from white to second color.

I found almost everything that I found I tried to override the principal of the class of principal classes, but it does not work. It turns all the canvas / frames into one color and the chart disappears.

.xhtml file

  & lt; P: chart type = "pie" model = "# {dashboard controller. Model}" style = "width: 500px; height: 250px; margin: 0 auto;" / & gt;  

Bean Java file

  model = new PichortModel (); Model.setDataFormat ("value"); Model.setShowDataLabels (true); Model.setFill (true); Model.setTitle ("America"); Model.setSeriesColors ("62656a, a5a5a5,929397"); Model.setShowDataLabels (true); Model.setDiameter (200);  

This is the component that I need to change the background of the canvas. You can see the same chart from here:

** How can I change only the background? ? **

Thanks in advance.

bg on this class:

  .jqplot-series-canvas {background: blue; }  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -