Source code for lightningchart.series.point_line_series_3d

from __future__ import annotations
from typing import Optional

from lightningchart.charts import Chart
from lightningchart.series import (
    SeriesWithAddDataPoints,
    SeriesWithAddDataXYZ,
    SeriesWith3DPoints,
    SeriesWith3DLines,
    SeriesWith3DShading,
    ComponentWithLinePaletteColoring,
    SeriesWithAddEventListener,
    SeriesWithClear,
    SeriesWithCursor,
    SeriesWithXYZAxes,
)
from lightningchart.utils.utils import LegendOptions, build_series_legend_options


[docs] class PointLineSeries3D( SeriesWithAddDataPoints, SeriesWithAddDataXYZ, SeriesWith3DPoints, SeriesWith3DLines, SeriesWith3DShading, ComponentWithLinePaletteColoring, SeriesWithClear, SeriesWithAddEventListener, SeriesWithXYZAxes, SeriesWithCursor, ): """Series for visualizing 3D lines with datapoints.""" def __init__( self, chart: Chart, render_2d: bool = False, automatic_color_index: int = None, individual_lookup_values_enabled: bool = False, individual_point_color_enabled: bool = False, individual_point_size_axis_enabled: bool = False, individual_point_size_enabled: bool = False, legend: Optional[LegendOptions] = None, ): super().__init__(chart) legend_options = build_series_legend_options(legend) self.instance.send( self.id, 'pointLineSeries3D', { 'chart': self.chart.id, 'automaticColorIndex': automatic_color_index, 'individualLookupValuesEnabled': individual_lookup_values_enabled, 'individualPointColorEnabled': individual_point_color_enabled, 'individualPointSizeAxisEnabled': individual_point_size_axis_enabled, 'individualPointSizeEnabled': individual_point_size_enabled, 'pointCloudSeries': render_2d, 'legend': legend_options if legend_options else None, }, )