New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@gctools-components/phrase-cloud-treemap

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gctools-components/phrase-cloud-treemap

Phrase cloud SVG based component using d3's treemap layout

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

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

Phrase cloud treemap

At NRC we've been working on innovative ways to visualize recommendation data. One of the methods we've developped is called the "Phrase cloud".

Phrase clouds are in many ways analogous to their more popular counterparts word clouds. The key difference is that a phrase cloud is capable of providing greater context by including combinations of words that add meaning to a recommendation, rather than single words, which introduce ambiguity.

Installation

yarn add @gctools-components/phrase-cloud

Usage

import React from 'react';
import PhraseCloud from '@gctools-components/phrase-cloud-treemap';

const PhraseCloudExample = () => (
  <PhraseCloud
    waitForFontFace
    fontFamily="Roboto Condensed"
    placement="onion"
    phrases={[
      { text: 'This phrase is O.K.', size: 7 },
      { text: 'I am not an important phrase', size: 4 },
      { text: 'I am also of no importance', size: 4 },
      { text: 'I am important', size: 13 },
      { text: 'GCTools rocks!', size: 13 },
      { text: 'I am GREAT.', size: 14 },
    ]}
  />
);
export default PhraseCloudExample;

© Her Majesty the Queen in Right of Canada, as represented by the Minister of the National Research Council, 2017

Keywords

FAQs

Package last updated on 04 Nov 2017

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