DETAIL PANEL · DEMO

Sample project review

Keep your context while reviewing the details.

Ready for review
Template route
/felix/components/candlestick-chart
Project
Riverside workspace (fictitious)
Owner
Morgan Lee (fictitious)

Summary

This is an original example. The underlying page stays visible while the panel holds the details. No account, payment or external service is connected.

Review note

Skip to content

Candlestick chart ​

Back to Felix charts · JSON chart contract

A candlestick summarizes open, high, low and close for each period. The body spans open to close; the thin wick spans low to high. Use it when those four values and their within-period range matter. It does not show the order of trades inside the period, volume or every intermediate price. A line chart is simpler when only closing values matter. These are synthetic fixtures, not market data, investment advice or an order interface.

Preview, spec and editable example ​

Candlestick

Fictitious local data

CandlestickDay: Mon · Open: 40 · High: 60 · Low: 30 · Close: 55Day: Mon · Open: 40 · High: 60 · Low: 30 · Close: 55Day: Tue · Open: 55 · High: 65 · Low: 40 · Close: 44Day: Wed · Open: 44 · High: 75 · Low: 40 · Close: 68Day: Wed · Open: 44 · High: 75 · Low: 40 · Close: 68Day: Mon · Open: 40 · High: 60 · Low: 30 · Close: 55Day: Thu · Open: 68 · High: 82 · Low: 60 · Close: 75Day: Mon · Open: 40 · High: 60 · Low: 30 · Close: 55022.5545.167.6590.2MonTueWedThu

4 source rows from sample.candlestick. Focus a mark or a data row to read exact values.

Synthetic local data · felix-candlestick · sample.candlestick

The preview is rendered from the JSON in Spec. Open Example to edit the component, source, encoding and options, then choose Render JSON. The source registry is separately editable so you can try your own labels and values without embedding numbers in the chart spec. Nothing is sent, saved or fetched. Invalid input reports a field path and keeps the last valid preview.

Wire contract ​

This example selects felix-candlestick. The spec uses component, optional title, subtitle and insight, a named data.source, encoding and component-specific options. Data filters, stable sorting and limits are applied before rendering. The source holds headers and rows; every encoding names a real source column.

json
{
  "component": "felix-candlestick",
  "title": "Candlestick",
  "subtitle": "Fictitious local data",
  "data": {
    "source": "sample.candlestick"
  },
  "encoding": {
    "category": "Day",
    "open": "Open",
    "high": "High",
    "low": "Low",
    "close": "Close"
  },
  "options": {}
}

Encoding ​

ChannelSource column
categoryDay
openOpen
highHigh
lowLow
closeClose

Options ​

This Felix extension supports highlight, max, unit, currentPeriod, weights and polarEncoding where meaningful to the selected renderer. Unused controls are not an implied API.

Data, interaction and accessibility ​

Hover, focus, click, Enter or Space on a mark to read its exact source row. Data view shows the same filtered and sorted source rows in a scrollable table. Replay motion replays the entrance; reduced motion removes it. Ready/Loading/Empty are local demonstration states only and never invent a network result. The controls and spec tabs support keyboard use, including Left/Right, Home and End in the tab list.

Felix chart colors adapt to light and dark appearance. Turquoise leads; slate supports the comparison. Highlight names, labels, a focus outline and the exact data remain available without relying only on color. Sources are local and bounded to 2,000 rows. Unknown components, sources, fields and options fail visibly. There is no HTML, JavaScript or remote URL execution in a spec.

Integration ​

vue
<script setup>
import FelixJsonChart from './FelixJsonChart.vue'
const spec = /* validated chart spec from your application */ {}
const sources = /* named local source registry */ {}
</script>

<template>
  <FelixJsonChart :spec="spec" :sources="sources" />
</template>

resolveSpec(spec, sources) validates and resolves a chart model; chartGeometry(model) derives marks from that model. The documentation wrapper owns editor drafts and the last valid preview. Your application owns data fetching, authorization, refresh/error state and persistence. This local example is not a live data service. See the contract and supported renderers before adapting production data.

Lateral detail drawer

Open a detail panel without losing the page behind it. This shared pattern follows the current template's colors. Fictitious data; actions stay local.