LineChartData
Styling and geometry configuration for a single line series.
Inherits: BaseControl
Properties
above_line- A vertical line drawn between a line point and the top edge of the chart.above_line_bgcolor- Fill the area above chart line with the specified color.above_line_cutoff_y- Cut off filled area above line chart at specific Y value.above_line_gradient- Fill the area above chart line with the specified gradient.below_line- A vertical line drawn between a line point and the bottom edge of the chart.below_line_bgcolor- Fill the area below chart line with the specified color.below_line_cutoff_y- Cut off filled area below line chart at specific Y value.below_line_gradient- Fill the area below chart line with the specified gradient.color- A color of chart line.curve_smoothness- Defines the smoothness of a curve line, when curved is set toTrue.curved- Whether to draw this chart line as a curve.dash_pattern- Defines dash effect of the line.gradient- Gradient to draw line's background.point- Defines the appearance and shape of a line point (dot).points- A list of points (dots) of LineChartDataPoint type representing a single chart line.prevent_curve_over_shooting- Whether to prevent overshooting when draw curve line on linear sequence spots.prevent_curve_over_shooting_threshold- Threshold for prevent_curve_over_shooting algorithm.rounded_stroke_cap- Whether to draw rounded line caps.rounded_stroke_join- Whether to draw rounded line joins.selected_below_line- A vertical line drawn between selected line point and the bottom edge of the chart.selected_point- Defines the appearance and shape of a selected line point.shadow- Shadow to drop by a chart line.step_direction- Determines the direction of each step.stroke_width- The width of a chart line.
Properties
above_lineclass-attributeinstance-attribute
above_line: Optional[ChartPointLine] = NoneA vertical line drawn between a line point and the top edge of the chart.
above_line_bgcolorclass-attributeinstance-attribute
above_line_bgcolor: Optional[ColorValue] = NoneFill the area above chart line with the specified color.
above_line_cutoff_yclass-attributeinstance-attribute
above_line_cutoff_y: Optional[Number] = NoneCut off filled area above line chart at specific Y value.
above_line_gradientclass-attributeinstance-attribute
above_line_gradient: Optional[Gradient] = NoneFill the area above chart line with the specified gradient.
below_lineclass-attributeinstance-attribute
below_line: Optional[ChartPointLine] = NoneA vertical line drawn between a line point and the bottom edge of the chart.
below_line_bgcolorclass-attributeinstance-attribute
below_line_bgcolor: Optional[ColorValue] = NoneFill the area below chart line with the specified color.
below_line_cutoff_yclass-attributeinstance-attribute
below_line_cutoff_y: Optional[Number] = NoneCut off filled area below line chart at specific Y value.
below_line_gradientclass-attributeinstance-attribute
below_line_gradient: Optional[Gradient] = NoneFill the area below chart line with the specified gradient.
curve_smoothnessclass-attributeinstance-attribute
curve_smoothness: Number = 0.35Defines the smoothness of a curve line,
when curved is set to True.
curvedclass-attributeinstance-attribute
curved: bool = FalseWhether to draw this chart line as a curve.
dash_patternclass-attributeinstance-attribute
dash_pattern: Optional[list[int]] = NoneDefines dash effect of the line. The value is a circular list of dash offsets
and lengths. For example, the list [5, 10] would result in dashes 5 pixels
long followed by blank spaces 10 pixels long. By default, a solid line is
drawn.
gradientclass-attributeinstance-attribute
gradient: Optional[Gradient] = NoneGradient to draw line's background.
pointclass-attributeinstance-attribute
point: Union[None, bool, ChartPointShape] = NoneDefines the appearance and shape of a line point (dot).
Setting this property to True will draw a point with default style.
pointsclass-attributeinstance-attribute
points: list[LineChartDataPoint] = field(default_factory=list)A list of points (dots) of LineChartDataPoint type representing a single chart line.
prevent_curve_over_shootingclass-attributeinstance-attribute
prevent_curve_over_shooting: bool = FalseWhether to prevent overshooting when draw curve line on linear sequence spots.
prevent_curve_over_shooting_thresholdclass-attributeinstance-attribute
prevent_curve_over_shooting_threshold: Number = 10.0Threshold for prevent_curve_over_shooting algorithm.
rounded_stroke_capclass-attributeinstance-attribute
rounded_stroke_cap: bool = FalseWhether to draw rounded line caps.
rounded_stroke_joinclass-attributeinstance-attribute
rounded_stroke_join: bool = FalseWhether to draw rounded line joins.
selected_below_lineclass-attributeinstance-attribute
selected_below_line: Union[None, bool, ChartPointLine] = NoneA vertical line drawn between selected line point and the bottom edge of the chart.
Setting this property to True will draw a line with default style.
selected_pointclass-attributeinstance-attribute
selected_point: Union[None, bool, ChartPointShape] = NoneDefines the appearance and shape of a selected line point.
shadowclass-attributeinstance-attribute
shadow: BoxShadow = field(default_factory=(lambda: BoxShadow(color=(Colors.TRANSPARENT))))Shadow to drop by a chart line.
step_directionclass-attributeinstance-attribute
step_direction: Optional[Number] = NoneDetermines the direction of each step.
If not None, this chart will be drawn as a
Step Line Chart.
Below are some typical values:
0.0: Go to the next spot directly, with the current point's y value.0.5: Go to the half with the current spot y, and with the next spot y for the rest.1.0: Go to the next spot y and direct line to the next spot.