Highlight

21 Apr 20171 minute to read

SunburstChart provides highlighting support for the points on mouse hover. To enable the highlighting , set the Enable property to true in the e-sunburstchart-highlight-settings.

  • CSHTML
  • <ej-sunburstchart id="SunburstChart" >
    <e-sunburstchart-highlight-settings enable="true" ></e-sunburstchart-highlight-settings>
    </ej-sunburstchart>

    Highlight Display mode

    You can customize the highlighted segment appearance by using color or opacity. You can choose between color or opacity using the type property in the highlight Settings.

    • HighlightByColor – To display the highlighted segment appearance using color.
    • HighlightByOpacity – To display the highlighted segment appearance using opacity.
  • CSHTML
  • <ej-sunburstchart id="SunburstChart" >
    <e-sunburstchart-highlight-settings enable="true" color="red" type="@SunburstHighlightType.Color"></e-sunburstchart-highlight-settings>
    </ej-sunburstchart>

    Highlight Mode

    Sunburst chart provides multiple option to represent the highlighted categories. You can highlight the segment categories by using the mode property in highlightSettings

    • Child – To highlight the child of selected parent.
    • All – To highlight the entire categories in group.
    • Parent – To highlight the parent of selected child.
    • Single - To highlight single item in the category.

    Child

    The following code shows how to set the highlight type as child

  • CSHTML
  • <ej-sunburstchart id="SunburstChart" >
    <e-sunburstchart-highlight-settings enable="true" mode="@SunburstHighlightMode.Child">
    </e-sunburstchart-highlight-settings>
    </ej-sunburstchart>

    Parent

    The parent mode can be enabled by using the below code

  • CSHTML
  • <ej-sunburstchart id="SunburstChart" >
    <e-sunburstchart-highlight-settings enable="true" mode="@SunburstHighlightMode.Parent">
    </e-sunburstchart-highlight-settings>
    </ej-sunburstchart>

    Point

    To highlight the particular segment, the point mode of the highlight settings is used.

  • CSHTML
  • <ej-sunburstchart id="SunburstChart" >
    <e-sunburstchart-highlight-settings enable="true" mode="@SunburstHighlightMode.Point">
    </e-sunburstchart-highlight-settings>
    </ej-sunburstchart>

    All

    The following code snippet is used for the all mode of highlight settings

  • CSHTML
  • <ej-sunburstchart id="SunburstChart" >
    <e-sunburstchart-highlight-settings enable="true" mode="@SunburstHighlightMode.All">
    </e-sunburstchart-highlight-settings>
    </ej-sunburstchart>