not exactly sure what you're trying to do, but it appears like you just need to change this
this.category == <%= @show_me %>;
this.category = "<%= @show_me %>";
although you should be aware that anything with the
<%= %> tags is prerendered before the page is loaded.
looks like what you're trying to do might involve some ajax. you might consider looking through this tutorial since this is a semi-complicated topic, and can be confusing if you have no experience with it.
- Passing data from db into Highcharts in Rails 3.x
- passing json values to highcharts from .net code behind
- Plot Highcharts data from past 30 days with Ruby on Rails
- Highcharts Using Data from Ruby on Rails Database
- Passing Returned Data from a PHP Script into a Highcharts data block?
- Unable to use solid-gauge highchart in backboneJS from ruby on rails
- Passing variable into highcharts solid gauge
- multiple Drilldown in Highcharts using values from database in ruby on rails
- How to disable legend click to stop pie slice from disappearing in Highcharts?
- highcharts: stop chart from trapping mouse events, or capture mouse click on the ENTIRE chart
- getting error#17 from highcharts while using solid gauge from backbone rails
- Converting svg from Highcharts data into data points
- How to pass custom data into Highcharts graph click event
More Query from same tag
- Draw pie chart using spring boot, thymeleaf, js, highchart but can't
- Highcharts: How to provide a custom stack label in highcharts bar graph from within the stackLabel formatter?
- HighCharts: Treemap dataLabels inconsistent on drilldown/drillup
- how to get geojson of mainly cities of all of country of the world
- Datalabels on Highmaps appearing bottom to top
- Chart not resizing according to it's container Highcharts reactjs
- Highcharts IE10 support
- Highcharts (PieChart) - chart width reduced on drawing second time
- can't get data from mysql in highchart
- Highcharts: X-axis, plot points and horizontal scrolling
- Rails - speed and time
- How can I make HighCharts 4.2.5 with boost.js invoke the tooltip formatter?
- Highchart graph inside leaflet popup using geojson data and oneachfeature
- NReco HTML-to-PDF Generator for .NET blank pdf angular 2 highchart
- highchats in r shiny: the x values on click are not the real values of my date axis
- Plotting JSON data with angular2-highchart
- Highchart X-Axis Label DateTime Issue
- Legend title position in
- Generate multiple charts based on json in angular 8
- Highstock chart: navigator displays the wrong area in negative-color
- Build failing after angular upgrade from 4.4 to 8
- Pass event from overlayed div to Highmaps
- Get Parent When Clicked Child Highcharts
- HighCharts does not contain a constructor that takes 1 argument in ASP.Net MVC C#
- HighCharts - How to create dynamic chart that exports EVERYTHING
- I'm getting this error when fly over the chart: TypeError: Cannot read property 'lineWidth' of undefined
- x-area labels on hover