Customer journey map
Stages, what the customer meets, and how they feel at each step. Good for finding where customers are let down.
The smallest code that works. change the code, then press Run
In your framework
import { Chart } from 'nervure/react';
const spec = {
type: 'journey',
stages: [
{ name: 'Discover', touchpoints: ['Social post', 'Friend'], score: 4 },
{ name: 'Compare', touchpoints: ['Website', 'Reviews', 'Price page'], score: 3, note: 'Too many plans' },
{ name: 'Buy', touchpoints: ['Checkout', 'Payment'], score: 3 },
{ name: 'Wait', touchpoints: ['E-mail', 'Tracking'], score: 1, note: 'Late parcel' },
{ name: 'Use', touchpoints: ['App', 'Guide'], score: 4 },
{ name: 'Return', touchpoints: ['Newsletter'], score: 3 },
],
};
export default function Example() {
return <Chart spec={spec} style={{ height: 340 }} />;
}Or import this chart alone: what each import weighs.
Options
Beside the fields shared by every chart (title, format, heading, export…), type journey takes:
/** Stages of a customer journey, what the customer meets at each one, and how they feel. */
interface JourneySpec extends Base {
type: 'journey';
stages: { name: string; touchpoints?: string[]; /** How the customer feels. */ score: number; note?: string }[];
/** Range of the scores: 1 to 5 by default. */
min?: number;
max?: number;
}Style it
- Colours:
theme.palette,chart.setColor(name, colour), or--nervure-palettein your CSS. More - Marks:
[data-series="name"], parts:[data-part="axes"],legend,series. What you change is kept in exports. - Movement:
animation: falsedraws at once. More - Files:
chart.download('png'),svg,csv. More