pointPlacement - single column #227

Closed
duet-ngyen opened this Issue Jan 3, 2017 · 1 comment

Projects

None yet

1 participant

@duet-ngyen
duet-ngyen commented Jan 3, 2017 edited

I'm using this gem and I meet a problem like pointPlacement - single column which was happened and fixed on hightchart.
When I using the same data with hightchart native, It works but not work fine with this gem.
Anyone help me?

My chart works fine when use hightchart native: http://jsfiddle.net/duyetvn/rcwuey9k/1/

But not work when use this gem.
My code:

@graph = LazyHighCharts::HighChart.new do |f|
      f.chart({type: "columnrange", inverted: true})
      f.title(text: "Plan - Progress rate")
      f.subtitle(text: "Example")
      f.xAxis(categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'])
      f.yAxis(
        title: {
                text: 'Temperature ( °C )'
            }
      )
      f.series({
            name: 'Temperatures',
            pointPlacement: -0.15,
            data: [
                [-9.7, 9.4]
            ]
        }
      )
      f.series({
            name: 'TEST',
            pointPlacement: 0.15,
            data: [
                [0, 5]
            ]
        }
      )

      f.legend(enabled: false)
    end

It displays like
pintplacement

@duet-ngyen

I found problem is this gem still not update highcharts lib to latest versions. Waiting for updating.

@duet-ngyen duet-ngyen closed this Jan 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment