import hbs from 'htmlbars-inline-precompile'; export default { title: 'Charts/Primitives', }; export let Tooltip = () => ({ template: hbs`
Single Entry
  • {{series.name}} {{series.value}}
  • Multiple Entries
  • {{series.name}} {{datum.value}}
  • Active Entry
  • {{series.name}} {{datum.value}}
  • Color Scales
    {{#each this.scales as |scale|}}
    {{scale}}
  • {{series.name}} {{datum.value}}
  • {{/each}}
    `, context: { style: 'left:70%;top:50%;', dataSingle: [{ series: { name: 'Example', value: 12 } }], dataMultiple: [ { series: { name: 'One' }, datum: { value: 12 }, index: 0 }, { series: { name: 'Two' }, datum: { value: 24 }, index: 1 }, { series: { name: 'Three' }, datum: { value: 36 }, index: 2 }, { series: { name: 'Four' }, datum: { value: 48 }, index: 3 }, { series: { name: 'Five' }, datum: { value: 60 }, index: 4 }, { series: { name: 'Six' }, datum: { value: 72 }, index: 5 }, { series: { name: 'Seven' }, datum: { value: 84 }, index: 6 }, ], scales: ['reds', 'blues', 'ordinal'], }, });