JavaScript/jQuery PolarChart - series.point.hoverStyle
To set a custom 'hover' style for points in all series at once, use the point.hoverStyle object within the commonSeriesSettings configuration object.
If you have several series of one type, you can set point hover style properties to the values specific to this series type using the corresponding object (area, line or another) within the commonSeriesSettings configuration object. The values that are set within series-type-specific configuration objects override the corresponding common values.
In case you have to set a point hover style property for an individual series, use the hoverStyle object within the series.point object of the series array. The values that are set individually override corresponding common values.
border
To set custom border settings specific to the 'hovered' state for points in all series at once, use the properties of the commonSeriesSettings.point.hoverStyle.border configuration object.
To set custom border settings specific to the 'hovered' state for points in all series of a single type at once, use the properties of the corresponding object within commonSeriesSettings (e.g. area.hoverStyle.border). The values that are set within this object override the corresponding common values that are set within the root commonSeriesSettings.hoverStyle.border object.
In case you have to set a hover style property for a point border in an individual series, use the hoverStyle.border object within the series object of the series array. The values that are set individually override corresponding common values.
color
This property supports the following colors:
- Hexadecimal colors
- RGB colors
- RGBA colors
- Predefined/cross-browser color names
- Predefined SVG colors
- Paint server address
You can also specify a custom pattern or gradient instead of a plain color. Call the registerPattern() or registerGradient() method to obtain a fill ID. Assign that value to the fillId
field.
jQuery
$(function(){ $("#polarChartContainer").dxPolarChart({ // ... series: { // ... point: { hoverStyle: { color: { fillId: customPatternId } } } } }); });
Angular
<dx-polar-chart ... > <dxi-series ... > <dxo-point ... > <dxo-hover-style [color]="fill" ></dxo-hover-style> </dxo-point> </dxi-series> </dx-polar-chart>
// ... export class AppComponent { // ... fill = { fillId: this.customPatternId }; }
Vue
<template> <DxPolarChart ... > <DxSeries ... > <DxPoint ... > <DxHoverStyle :color="fill" /> </DxPoint> </DxSeries> </DxPolarChart> </template> <script> import DxPolarChart, { DxSeries, DxPoint, DxHoverStyle } from 'devextreme-vue/chart'; // ... export default { components: { DxPolarChart, DxSeries, DxPoint, DxHoverStyle }, data() { return { // ... fill: { fillId: this.customPatternId } } } } </script>
<template> <DxPolarChart ... > <DxSeries ... > <DxPoint ... > <DxHoverStyle :color="fill" /> </DxPoint> </DxSeries> </DxPolarChart> </template> <script setup> import DxPolarChart, { DxSeries, DxPoint, DxHoverStyle } from 'devextreme-vue/chart'; // ... const fill = { fillId: customPatternId }; </script>
React
import React from 'react'; import PolarChart, { Series, Point, HoverStyle } from 'devextreme-react/chart'; // ... const fill = { fillId: customPatternId }; export default function App() { return ( <PolarChart ... > <Series ... > <Point ... > <HoverStyle color={fill} /> </Point> </Series> </PolarChart> ); }
size
Specifies the diameter of a hovered point in the series that represents data points as symbols (not as bars for instance).