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

Support for 'noData' settings in highchart? #221

Open
abuisman opened this issue Sep 28, 2016 · 1 comment
Open

Support for 'noData' settings in highchart? #221

abuisman opened this issue Sep 28, 2016 · 1 comment

Comments

@abuisman
Copy link
Contributor

Hi,

We have a chart of which the series is an empty array. Highcharts supports this through an external file (no idea why) and some settings:

    @chart = LazyHighCharts::HighChart.new('graph') do |f|
      f.options[:lang] = { noData: I18n.t('helpers.chart.no_data') }
      f.title(text: nil)
      f.series([])
    end

Quote:

Options for displaying a message like "No data to display". This feature requires the file no-data-to-display.js to be loaded in the page. The actual text to display is set in the lang.noData option.

As described here: http://api.highcharts.com/highcharts/noData
And demonstrated here: http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/no-data-to-display/no-data-line/

We looked through the source of the gem, but we couldn't find anything that looked like it was the no-data-to-display.js file. Maybe we overlooked something?

The feature works when we manually include the file from the high charts jsfiddle.

@arjan0307
Copy link
Contributor

This issue seems to be resolved by this pr that is now merged: #222

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

2 participants