Skip to content

primefaces-13.0.14-LTS-jakarta #3110

Closed Answered by DazzlingBob
pdj-code asked this question in PrimeFaces
Discussion options

You must be logged in to vote

Something like (did not test this):

		// options - legend
		Legend legend = new Legend();
		legend.setDisplay(true);
		legend.setPosition("bottom");
		legend.setAlign("start");
		LegendLabel legendLabel = new LegendLabel();
		legendLabel.setBoxWidth(12);
		legend.setLabels(legendLabel);
		options.setLegend(legend);

I do however not recommend to use PieChartModel anymore.
Because it is deprecated in version 14.0.0 and marked for removal.
Instead use <p:chart> and raw JSON or XDEV Chart.js Java Model.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pdj-code
Comment options

Answer selected by pdj-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants