Skip to content
@nstudio/ncharts

High-performance, fully customizable chart components. Line, Bar, Pie, Scatter, Candlestick, Radar and more.

Native Performance
TypeScript First
iOS & Android

Simple API, Powerful Results

Get started in minutes

πŸ“ˆLine Chart
const data: LineChartData = {
  dataSets: [{
    values: [{ y: 45 }, { y: 52 }, { y: 68 }, { y: 73 }],
    config: {
      colors: ['#3B82F6'],
      mode: 'CUBIC_BEZIER',
      drawFilled: true,
    },
  }],
};
πŸ“ŠBar Chart
const data: BarChartData = {
  dataSets: [{
    values: [{ y: 25 }, { y: 32 }, { y: 28 }, { y: 41 }],
    config: {
      colors: ['#10B981', '#14B8A6', '#06B6D4', '#3B82F6'],
      drawValues: true,
    },
  }],
};
πŸ₯§Pie Chart
const data: PieChartData = {
  dataSets: [{
    values: [
      { value: 35, label: 'iOS' },
      { value: 45, label: 'Android' },
      { value: 20, label: 'Other' },
    ],
    config: { sliceSpace: 3 },
  }],
};
πŸ”΅Scatter Chart
const data: ScatterChartData = {
  dataSets: [{
    values: [
      { x: 1, y: 5 }, { x: 2, y: 8 },
      { x: 3, y: 4 }, { x: 4, y: 9 },
    ],
    config: { scatterShape: 'CIRCLE' },
  }],
};
🫧Bubble Chart
const data: BubbleChartData = {
  dataSets: [{
    values: [
      { x: 1, y: 5, size: 20 },
      { x: 3, y: 8, size: 35 },
      { x: 5, y: 3, size: 15 },
    ],
    config: { colors: ['#8B5CF6'] },
  }],
};
πŸ•―οΈCandlestick
const data: CandleChartData = {
  dataSets: [{
    values: [{
      shadowH: 105, shadowL: 95,
      open: 98, close: 102,
    }],
    config: { increasingColor: '#10B981' },
  }],
};
πŸ•ΈοΈRadar Chart
const data: RadarChartData = {
  labels: ['Speed', 'Power', 'Defense', 'Range'],
  dataSets: [{
    values: [{ value: 80 }, { value: 65 },
             { value: 90 }, { value: 70 }],
    config: { drawFilled: true },
  }],
};
πŸ“‰Combined Chart
const data: CombinedChartData = {
  lineData: {
    dataSets: [{ values: [{ y: 30 }, { y: 45 }] }],
  },
  barData: {
    dataSets: [{ values: [{ y: 50 }, { y: 35 }] }],
  },
};
πŸ“Horizontal Bar
// Use HorizontalBarChart component
const data: BarChartData = {
  dataSets: [{
    values: [{ y: 42 }, { y: 28 }, { y: 18 }],
    config: {
      colors: ['#F59E0B', '#EF4444', '#8B5CF6'],
    },
  }],
};
9+
Chart Types
120fps
Animation Performance
100%
TypeScript Coverage

Every Chart Type You Need

From simple lines to complex candlesticks, render stunning charts with ease

Line Chart

Perfect for time series and trends

Smooth animations at up to 120fps on ProMotion displays

Touch gestures and interactions built-in

Fully customizable colors and styles

Real-time data updates supported

View documentation

Ready to Get Started?

Install @nstudio/ncharts and start building beautiful charts today

npm install @nstudio/ncharts