Back to Data Formulator

Chart Icon Design Guide

src/assets/icon-design.md

0.64.2 KB
Original Source

Chart Icon Design Guide

Design conventions for chart template icons in src/assets/.

Color Palette

TokenHexUsage
Light Blue#76c6ffPrimary fill — dots, bars, areas (series A)
Dark Blue#4a8acbPrimary stroke / line (series A)
Light Gray#B8B8B8Secondary fill — dots, bars, areas (series B)
Dark Gray#7a7a7aSecondary stroke / line (series B)
Axis / Outline#363636Axes, mark outlines, stems
Pastel Red#e8868fBearish / negative (candlestick)
Pastel Green#6dc48dBullish / positive (candlestick)

All colors are muted/pastel to match the overall UI tone. Avoid saturated primaries.

Mark Style Rules

Filled marks (bars, circles, areas)

  • Fill with light color (#76c6ff or #B8B8B8)
  • Outline with #363636, stroke-width 23
  • This gives marks a clean, defined edge consistent with the designer samples

Lines (line charts, bump charts)

  • Stroke with dark color (#4a8acb for blue series, #7a7a7a for gray series)
  • Stroke-width: 45, stroke-linecap="round", stroke-linejoin="round"
  • Dots on lines: fill with the corresponding light color, outline #363636 stroke-width 2

Line thickness reference

Elementstroke-width
Axes4
Data lines (line/bump/area outline)45
Mark outlines (bars, dots, rects)23
Stems / rules (lollipop)4
Grid / spokes (radar)0.60.8

Two-series convention

Charts that show a color encoding use two series:

  • Series A: light blue fill / dark blue stroke
  • Series B: light gray fill / dark gray stroke

For charts needing four series (e.g. bump chart), alternate:

  • Series 1: #76c6ff fill / #4a8acb stroke
  • Series 2: #B8B8B8 fill / #7a7a7a stroke
  • Series 3: #5ba8e0 fill / #3d7ebf stroke
  • Series 4: #d0d0d0 fill / #a8a8a8 stroke

Format

  • New icons: SVG (chart-icon-*.svg), viewBox 0 0 256 256
  • Legacy icons: minified PNG (chart-icon-*-min.png)
  • Prefer SVG for new additions — scales cleanly at any size

Structure (SVG)

  • Axes drawn last so they layer on top
  • Y-axis: x1="48" y1="28" x2="48" y2="220", stroke #363636, width 4, round cap
  • X-axis: x1="44" y1="216" x2="240" y2="216", stroke #363636, width 4, round cap
  • Data region: roughly x ∈ [60, 236], y ∈ [40, 216]

Icon Inventory

FileChart TypeFormat
chart-icon-scatter-min.pngScatter PlotPNG
chart-icon-linear-regression-min.pngLinear RegressionPNG
chart-icon-dot-plot-horizontal-min.pngRanged Dot PlotPNG
chart-icon-box-plot-min.pngBoxplotPNG
chart-icon-bubble-min.pngBubble ChartPNG
chart-icon-column-min.pngBar ChartPNG
chart-icon-column-grouped-min.pngGrouped Bar ChartPNG
chart-icon-column-stacked-min.pngStacked Bar ChartPNG
chart-icon-histogram-min.pngHistogramPNG
chart-icon-heat-map-min.pngHeatmapPNG
chart-icon-pyramid.svgPyramid ChartSVG
chart-icon-line-min.pngLine ChartPNG
chart-icon-dotted-line-min.pngDotted Line ChartPNG
chart-icon-area.svgArea ChartSVG
chart-icon-streamgraph.svgStreamgraphSVG
chart-icon-lollipop.svgLollipop ChartSVG
chart-icon-density.svgDensity PlotSVG
chart-icon-candlestick.svgCandlestick ChartSVG
chart-icon-waterfall.svgWaterfall ChartSVG
chart-icon-strip-plot.svgStrip PlotSVG
chart-icon-radar.svgRadar ChartSVG
chart-icon-bump.svgBump ChartSVG
chart-icon-pie-min.pngPie ChartPNG
chart-icon-us-map-min.pngUS MapPNG
chart-icon-world-map-min.pngWorld MapPNG
chart-icon-custom-point-min.pngCustom PointPNG
chart-icon-custom-line-min.pngCustom LinePNG
chart-icon-custom-bar-min.pngCustom BarPNG
chart-icon-custom-rect-min.pngCustom RectPNG
chart-icon-custom-area-min.pngCustom AreaPNG
chart-icon-dot-plot-vertical-min.png(unused — was Lollipop)PNG
chart-icon-table-min.pngTablePNG