
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
highcharts-js-rails
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Easily configure a Highcharts JS chart for use in a Rails application.
All major options in Highcharts are available to be used with Highcharts JS Rails. However, the exporting and navigation options are not yet built in. You will need to do those manually.
The Highcharts class's methods match up to the corresponding Highcharts options. Take a look at http://www.highcharts.com/ref/ for the full reference.
Many have a default option assigned to them. Those that have one are listed below:
Highcharts JS Rails requires Ruby 1.9.2+ and Rails 3.1+.
categories
option's array of values will be automatically formatted based on its class unless you pass :skip_category_formatting => true.tickInterval
option is only necessary if you want to override automatic tickInterval creation. If the option is not passed or :auto is passed, the tickInterval will be calculated based on the number of categories passed.For the xAxis, yAxis, and series options, you must pass an array of hashes. Each of those hashes will be converted into the appropriate set of options.
Ruby:
chart = Highcharts.new do |chart|
chart.chart(renderTo: 'graph')
chart.title('Highcharts Example')
chart.xAxis(categories: ['October 12', 'October 13', 'October 14'])
chart.yAxis(title: 'Impressions', min: 0)
chart.series(name: 'Impressions', yAxis: 0, type: 'line', data: [100000, 122000, 127000])
chart.legend(layout: 'vertical', align: 'right', verticalAlign: 'top', x: -10, y: 100, borderWidth: 0)
chart.tooltip(formatter: "function(){ return '<b>' + this.series.name + '</b><br/>' + this.x + ': ' + this.y; }")
end
HTML/ERB:
<%= chart %>
<div id="graph" style="width: 400px; height: 200px;"></div>
FAQs
Unknown package
We found that highcharts-js-rails demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.