)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Syncfusion Feedback

What are the shapes available for marker, data label, etc.., in the chart?

Platform: jQuery |
Control: ejChart |
Published Date: May 25, 2015 |
Last Revised Date: July 1, 2019

Essential Chart supports 18 different type of shapes. They are

  1. Circle
  2. Cross
  3. Diamond
  4. Down arrow
  5. Ellipse
  6. Hexagon
  7. Horizontal line
  8. Inverted triangle
  9. Left arrow
  10. Pentagon
  11. Right arrow
  12. Series type (available only for legend)
  13. Star
  14. Trapezoid
  15. Up arrow
  16. Vertical line
  17. Wedge
  18. Image

The above shapes are applicable for

1)Markers

2)Data label background shape

3)Trackball marker

4)Legend item symbol.

The following code example uses circle symbol for marker, rectangle symbol for data label shape background, hexagon symbol for trackball marker and diamond shape for legend item symbol.

JS

$("#container").ejChart({
    legend: {
        shape: 'diamond'
    },
    crosshair: {
        type: 'trackball',
        visible: true,
        marker: {
            visible: true,
            shape: 'hexagon',
            border: {
                color: 'blue'
            }
        }
    },
    commonSeriesOptions: {
        type: 'line'
        marker: {
            visible: true,
            shape: 'circle',
            dataLabel:{
                visible: true,
                shape: 'rectangle',
                fill: 'yellow'
            }
        }
    }
});

 

Refer to the following screenshot.

Different shapes

JS Playground sample link: Shapes

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon