Skip to content

Replace Frappe Charts with Orchid Charts 0.0.13 - #3143

Merged
tabuna merged 9 commits into
masterfrom
codex/replace-frappe-with-orchid-charts
Oct 21, 2026
Merged

tabuna merged 9 commits into
masterfrom
codex/replace-frappe-with-orchid-charts

Conversation

@tabuna

@tabuna tabuna commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Replace Frappe Charts with @orchidsoftware/charts 0.0.13. Screens configure the five supported chart types directly through Layout::chart(), using native options, shared labels and datasets.

Layout::chart('visits', 'Visits')
    ->height(300)
    ->smooth()
    ->gradient()
    ->marker('Target', 40, ['lineStyle' => 'dashed']);

The package measures the actual CSS typography for legends, axes and annotations. Platform retains its 14px label styles and semantic colors, uses the standard package legend, and gives the canvas consistent card padding. Marker labels remain inside the plot without a default outline.

Update metric producers, generated chart layouts and chart examples to the native data shape. The controller replaces chart instances on config/canvas changes, waits for stylesheet loading, exports SVG and destroys instances on disconnect.

Compatibility

Chart data uses shared labels and datasets. TimeCollection::toChart() and GroupCollection::toChart() return this shape. Native Orchid Charts options replace Frappe-specific options; TYPE_MIXED replaces TYPE_AXIS_MIXED. Pie and percentage charts require one dataset. Typed chart properties and the generated fluent layout replace the old subclass property configuration.

Validation and scope

  • Full PHP suite passed with 628 tests and 1,706 assertions.
  • Seven JavaScript controller tests passed.
  • Scoped Pint, full Prettier check and git diff --check passed.
  • Production assets were rebuilt in an isolated checkout of current master plus the chart changes. Manifest hashes and SRI match the generated files.
  • Independent review passed with the compatibility notes above.
  • The final diff contains 24 chart source, example, test and asset paths. Existing local form, table, navigation, documentation, Composer and Vite configuration changes are excluded. No lockfile policy changes.

@tabuna tabuna changed the title Replace Frappe Charts with Orchid Charts Replace Frappe Charts with Orchid Charts and simplify the PHP API Sep 15, 2026
@tabuna tabuna changed the title Replace Frappe Charts with Orchid Charts and simplify the PHP API Replace Frappe Charts with Orchid Charts 0.0.13 Oct 21, 2026
@tabuna
tabuna merged commit 988208c into master Oct 21, 2026
58 of 64 checks passed
@tabuna
tabuna deleted the codex/replace-frappe-with-orchid-charts branch October 21, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant