Skip to content

Add ability to add custom data labels to charts.#1337

Open
yukosgiti wants to merge 11 commits intogitbrent:masterfrom
yukosgiti:feature/custom-data-labels
Open

Add ability to add custom data labels to charts.#1337
yukosgiti wants to merge 11 commits intogitbrent:masterfrom
yukosgiti:feature/custom-data-labels

Conversation

@yukosgiti
Copy link

image

With code like:

 this.slide.addChart(
      'line',
      [
        {
          name: 'Overall',
          labels: x.labels,
          values: x.data,
        },
        {
          name: 'Benchmark',
          labels: y.labels,
          values: y.benchmark,
          dataLabels: y.map((i) => `>>${i}<<`),
        },
        {
          name: 'Overall',
          labels: z.labels,
          values: z.overall,
          dataLabels: z.overall.map(
            (i) => `${i}, Count: ${Math.round(i * i)}`
          ),
        },
      ],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant