Essential Chart supports customizing width and color of legend border using border property of legend. To customize the legend items border, you can use itemStyle property of legend. Item style property contains the border property to customize the width and color of legend items border. This is illustrated in the following code example. JS $("#container").ejChart({ . . . . . . . . . . . . legend: { visible: true, shape: "circle", //Customizing legend border border: { color: 'orange', width: 1.5 }, itemStyle: { height: 10, width: 10, //Customizing legend item border border: { color: " black", width: 2 } } } }); The following screenshot illustrates the output. Figure 1: Customized Chart JS Playground Link: Legend Border
|
This page will automatically be redirected to the sign-in page in 10 seconds.