
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
#d3js-charts
Create your charts easy using d3.js library. This gem provides an opportunity to create any chart more easily!
d3js-charts comes with version 3.3.7 of D3.js. and will track the always mirror the version of D3 it comes with.
Add this line to your Gemfile
:
gem "d3js-charts"
Please note that D3 is provided via the asset pipeline and you do not need to copy their files into your application. Rails will get them from d3js-charts automatically.
Then add it to your manifest file, most probably at app/assets/javascripts/application.js
:
//= require d3
and add to files sass app/assets/javascripts/application.scss
:
@import "d3js-charts/*";
Less-Common Charts:
Treemap
<%= treemap("http://0.0.0.0:3000/treemap.json") %>
Streamgraph
<%= streamgraph("http://0.0.0.0:3000/streamgraph.csv") %>
Radar Chart
<%= radar_chart("http://0.0.0.0:3000/radar_chart.json") %>
Polar Area Diagram
<%= polar_area_diagram( "http://0.0.0.0:3000/polar_area_diagram.json" ) %>
Bubble Chart
<%= bubble_chart( "http://0.0.0.0:3000/bubble_chart.json" ) %>
Common Charts:
Line Chart
<%= line_chart( [1,2,3,4,5] ) %>
Pie Chart
<%= pie_chart( "http://0.0.0.0:3000/pie_chart.csv" ) %>
Histogram Chart
<%= histogram_chart( [ 0.3868526664824069, 0.4917571016462725,
0.38783356112423817, 0.5401234418737314,
0.41510852382870295, 0.46538050029079203 ] ) %>
Vertical Bar Chart
<%= vertical_bar_chart( "http://0.0.0.0:3000/vertical_bar_chart.tsv" ) %>
Horizontal Bar Chart
<%= horizontal_bar_chart( [1,2,3,4,5] ) %>
If you have some ideas or find problem, I'll be very happy to see you'r pull request or ussue!
========= to be continued... :)
FAQs
Unknown package
We found that d3js-charts 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.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.