NeoCharts
Charting

Theming

Recolor the chart for your brand, separately for light and dark mode.

You can override any of 14 color tokens, separately for light and dark mode. A token you don't set keeps its default below.

TokenColorsLight defaultDark default
primaryaccent: selected tabs, buttons, links#2EA7E0#2EA7E0
onPrimarytext and icons on primary#000000#000000
onSecondarytext on order and position tags#FFFFFF#000000
surfacepage and chart background#F4F5F7#0A0E13
onSurfacemain text#212121#DDDDDD
surfaceContainercards, sheets, panels#FFFFFF#0F1521
surfaceContainerHighchips, tooltips, raised rows#F0F2F5#1E2939
onSurfaceVariantsecondary text and labels#3C404A#A0A6B2
inverseSurfacealert markers, high-contrast badges#000000#FFFFFF
onInverseSurfacetext on inverseSurface#FFFFFF#000000
outlineborders, dividers, axis lines#D1D9E0#364153
bullishup candles, buy#065A3E#0FEAA1
bearishdown candles, sell#C83535#FE4545
liveMarkerlive price marker#FFDA06#FFDA06

Colors

Pass an NxtChartStyle to NxtChartPage. Both fields are optional.

NxtChartPage(
  dataProvider: controller,
  style: const NxtChartStyle(
    lightColors: NxtChartColorOverrides(primary: Color(0xFF7B1FA2)),
    darkColors: NxtChartColorOverrides(
      primary: Color(0xFF7B1FA2),
      bullish: Color(0xFF26A69A),
      bearish: Color(0xFFEF5350),
    ),
  ),
)

A null primary takes your app's Theme.of(context).colorScheme.primary.

Light and dark

The chart follows your app's Theme brightness. Switch your app's theme and the chart follows.

On this page