Skip to content

Workspace persistence API for KLineCharts Pro  #804

Description

@sjsalimi

Hello KLineCharts team,

We are evaluating KLineCharts Pro for a trading analytics platform where workspace persistence is a core requirement.

Based on the official KLineCharts Pro API documentation and runtime inspection of the Pro instance, we can reliably access and persist:

  • symbol
  • period
  • timezone
  • theme
  • styles
  • locale

However, we could not find public Pro APIs for:

  • reading the current runtime indicators after users add/remove indicators from the Pro UI
  • reading or exporting drawings/overlays created from the drawing toolbar
  • importing/restoring drawings/overlays
  • accessing the underlying KLineCharts core chart instance in a stable/public way
  • exporting/importing a complete chart workspace

At runtime, the Pro instance exposes methods such as:

  • getSymbol / setSymbol
  • getPeriod / setPeriod
  • getTimezone / setTimezone
  • getTheme / setTheme
  • getStyles / setStyles
  • getLocale / setLocale

But we do not see public methods such as:

  • getIndicators
  • createIndicator
  • removeIndicator
  • getOverlays
  • createOverlay
  • removeOverlay
  • exportWorkspace
  • importWorkspace

Our questions are:

  1. Does KLineCharts Pro currently provide an official way to access the underlying core chart instance?
  2. Is there an official API for reading/restoring runtime indicators and drawings created through the Pro UI?
  3. Is workspace export/import supported or planned?
  4. For advanced use cases requiring persistent drawings, strategy zones, annotations, and AI-readable chart state, do you recommend using KLineCharts Core directly instead of Pro?

We want to avoid relying on private/internal properties such as _chartApi, unless that is an officially supported approach.

Thank you for your work on KLineCharts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions