Mixed Chart Types using Highcharts #263

jamesconnolly93 opened this Issue May 28, 2016 · 0 comments


None yet

2 participants


I'm trying to create a mixed column/line chart using Highcharts.

I've been trying to use the library functionality to set one of my data series to be of type "line". I have tried a few different approaches, but I can't seem to figure out how to pass the type parameter of a given series using the Highcharts API.

<%= column_chart( ChartData.new(@forecast).revenue_and_net_income, library: { title: { text: "Revenue and Net Income" }, series: [{ 1 => { type: "line" } }], } ) %>

Where my data come from the following method:

def revenue_and_net_income data = [ { name: "Revenue", data: revenue_by_year }, { name: "Net Income", data: net_income_by_year, } ] end

Not sure if I'm just doing something wrong? I only seem to be able to access the Highcharts API methods listed under 'Chart', none of the series options etc. seem to work.

@ankane ankane added the new chart label Jan 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment