
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
visualization-js-api
Advanced tools
VisualizationJsApi - the Ruby gem for the Visualization API
Generates server side renderings of D3 visualizations for a nodejs backend
This SDK is automatically generated by the Swagger Codegen project:
To build the Ruby code into a gem:
gem build visualization-js-api.gemspec
Then either install the gem locally:
gem install ./visualization-js-api-0.1.0.gem
(for development, run gem install --dev ./visualization-js-api-0.1.0.gem to install the development dependencies)
or publish the gem to a gem hosting service, e.g. RubyGems.
Finally add this to the Gemfile:
gem 'visualization-js-api', '~> 0.1.0'
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
gem 'visualization-js-api', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
Include the Ruby code directly using -I as follows:
ruby -Ilib script.rb
Please follow the installation procedure and then run the following code:
# Load the gem
require 'visualization-js-api'
api_instance = VisualizationJsApi::DefaultApi.new
graph_definition = VisualizationJsApi::GraphDefinition.new # GraphDefinition | The graph definition object
begin
result = api_instance.render_png_post(graph_definition)
p result
rescue VisualizationJsApi::ApiError => e
puts "Exception when calling DefaultApi->render_png_post: #{e}"
end
All URIs are relative to https://localhost:8000/api/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| VisualizationJsApi::DefaultApi | render_png_post | POST /render.png | |
| VisualizationJsApi::DefaultApi | render_svg_post | POST /render.svg |
FAQs
Unknown package
We found that visualization-js-api 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
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.