Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

d3-maximize

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d3-maximize

General purpose solution for maximizing D3 SVG charts

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-12.5%
Maintainers
1
Weekly downloads
 
Created
Source

d3-maximize

General purpose solution for maximizing D3 SVG charts

Usage

d3.maximize('#chart'), assuming your chart is constructed like d3.select('#chart').append('svg')....

The d3-maximize script must be loaded after D3 itself. The only required parameter is the query for obtaining the SVG tag's parent.

Options

d3.maximize() takes a config object as its optional second parameter. The supported options are as follows:

  • overlayClass: CSS class to apply to the div that will overlay your entire browser window to obscure the rest of the page. The default style is a nearly opaque white background.
  • closeButtonClass: CSS class to apply to the button for closing out of full screen mode. No default styling.
  • closeButtonHtml: The HTML content of the close button. Defaults to a simple X.

Example

bl.ocks.org demo Source Gist

Keywords

FAQs

Package last updated on 28 Sep 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc