Category / Section
What is the use of gapRatio property in Pyramid Chart?
1 min read
The gapRatio property specifies the gap between segments in a Pyramid series. It takes value between 0 and 1. When gap ratio is 0, there is no gap between segments and when gap ratio is 0, the segments are visible.
JS
$("#container").ejChart({ commonSeriesOptions: { type: 'pyramid', gapRatio: 0.5 } });
The following screenshot displays the Pyramid series with gap ratio 0.5.
Figure 1: Pyramid series with gap ratio 0.5
JS Playground sample link: Gap ratio