Category / Section
How to customize EjChart legend's position and alignment?
1 min read
EjChart allows you to customize the legend position in the chart using the legend properties “position” and “alignment”.
- Position- To move the legend to the top, bottom, left or right side of the chart.
- Alignment- To align the legend in center, far and near of the chart.
JS
$("#container").ejChart({ //… legend: { position:"right", alignment: "near”} //………….. });
JS Playground Link: Legend Position
Screenshot
Figure 1: EjChart