React Chart - commonSeriesSettings.point
Declared in commonSeriesSettings, the point settings apply to all points in the chart. Declared in a series configuration object, the point settings apply only to the points that belong to this particular series. The series-specific point settings override the common ones.
See Also
- customizePoint - сustomizes the appearance of an individual series point.
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.
This functionality is available for the following Chart series:
- Area
- Stacked area
- Full-stacked area
- Spline area
- Stacked spline area
- Full-stacked spline area
- Range area
- Step area
- Bar
- Stacked bar
- Full-stacked bar
- Range bar
- Bubble
jQuery
$(function(){ $("#chartContainer").dxChart({ // ... series: { // ... point: { color: { fillId: customPatternId } } } }); });
Angular
<dx-chart ... > <dxi-series ... > <dxo-point [color]="fill" ></dxo-point> </dxi-series> </dx-chart>
// ... export class AppComponent { // ... fill = { fillId: this.customPatternId }; }
Vue
<template> <DxChart ... > <DxSeries ... > <DxPoint :color="fill" /> </DxSeries> </DxChart> </template> <script> import DxChart, { DxSeries, DxPoint } from 'devextreme-vue/chart'; // ... export default { components: { DxChart, DxSeries, DxPoint }, data() { return { // ... fill: { fillId: this.customPatternId } } } } </script>
<template> <DxChart ... > <DxSeries ... > <DxPoint :color="fill" /> </DxSeries> </DxChart> </template> <script setup> import DxChart, { DxSeries, DxPoint } from 'devextreme-vue/chart'; // ... const fill = { fillId: customPatternId }; </script>
React
import React from 'react'; import Chart, { Series, Point } from 'devextreme-react/chart'; // ... const fill = { fillId: customPatternId }; export default function App() { return ( <Chart ... > <Series ... > <Point color={fill} /> </Series> </Chart> ); }
hoverMode
When a user pauses on a series point, this and other series points may react in one of the following ways depending on the value of the hoverMode property.
- onlyPoint
Only the point that a user pauses on changes its style. - allSeriesPoints
All points in the series change their style. - allArgumentPoints
The point that a user pauses on changes its style. Points with the same argument do it as well. - none
The point does not react to pointing to it.
See Also
image
Substitutes the standard point symbols with an image.
To display an image instead of series points, assign its URL to the url property. If needed, resize the image using the height and width properties. Otherwise, you can assign the URL directly to the image property.
selectionMode
When a user selects a series point, this and other series points may react in one of the following ways depending on the value of the selectionMode property.
- onlyPoint
Only the selected point changes its style. - allSeriesPoints
All points in the series change their style. - allArgumentPoints
The selected point changes its style. Points with the same argument do it as well. - none
The point does not react to selecting.
See Also
- pointSelectionMode - specifies whether only one or several points can stay selected.
- pointSelectionChanged - an event that fires after the selection state of a point has been changed.
selectionStyle
visible
This property's default value is false for series of area types. Set this option to true to display points in these series types.
If you have technical questions, please create a support ticket in the DevExpress Support Center.