Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to handle no data display for drilldown values ? #1

Open
desirelabs opened this issue Sep 5, 2017 · 2 comments
Open

Comments

@desirelabs
Copy link

Hi, thanks for this module. However it seems like it does not handle no data display when it comes to drilldown values (series).

Here an extract of my configuration :

{
    colors: ['#e53935', '#fb8c00', '#00acc1', '#9F70E1', '#9F70E1', '#43a047'],
    lang: {
      noData: 'no data!' // the text to be displayed
    },
    noData: {
      position: {
        'x': 0,
        'y': 0,
        'align': 'center',
        'verticalAlign': 'middle'
      }
    },
    responsive: {
      rules: [{
        condition: {
          maxWidth: 400
        },
        chartOptions: {
          series: [{
            id: 'versions',
            dataLabels: {
              enabled: false
            }
          }]
        }
      }]
    },
    credits: {
      enabled: false
    },
    chart: {
      type: 'pie'
    },
    title: {
      text: 'Cliquez sur les portions pour afficher les détails'
    },
    plotOptions: {
      series: {
        dataLabels: {
          enabled: true,
          format: '{point.name}: {point.y}'
        }
      }
    },
    tooltip: {
      headerFormat: '<span style="font-size:11px">{series.name}</span><br>',
      pointFormat: '<span style="color:{point.color}">{point.name}</span>: <b>{point.y}</b><br/>'
    },
    series: [{
      name: 'Brands',
      colorByPoint: true,
      data: data
    }],
    drilldown: {
      series: series
    }
  }

Is this on purpose or did I miss something ?

Cheers

@nerimartinez
Copy link
Owner

seems to be that you haven't missed something. I should check the code. When I created this I was not using drilldown. So feel free to fork it. If I have some free time, I will take a look, but atm I'm really busy!
Have you tried it with another chart? with no drilldown?
Cheers

@neovea
Copy link

neovea commented Sep 9, 2017

Thanks for aswering. It works fine when no drilldown. I'm in the same busyness so can't pr.

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

No branches or pull requests

3 participants