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

vue-chart-heatmap

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-chart-heatmap

A github style inspired heatmap capsuled as an easy to use vuejs component

  • 1.2.4
  • Source
  • npm
  • Socket score

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

vue-heatmap

The github style inspired calendar-heatmap capsuled as an easy to use vue.js component

A d3.js heatmap representing time series data. Inspired by Github's contribution chart

Reusable D3.js Calendar Heatmap chart

How to use:

# 1. Install Vuejs heatmap
npm install --save vue-chart-heatmap

# 2. Import
import VueChartHeatmap from 'vue-chart-heatmap'

# 3. Use
<vue-chart-heatmap></vue-chart-heatmap>

Props

selector selector

Any string which should be the selector, use it for multiple heatmaps on one site.

'myFirstSelector'

entries entries

[
  {
    "counting": 2070,
    "created_at": "2018-06-21"
  },
  {
    "counting": 3493,
    "created_at": "2018-06-22"
  }
]

colorRange color-range

['#c9ecec', '#09b3af']

tooltipEnabled tooltip-enabled

true/false

tooltipUnit tooltip-unit

'Star'

locale locale

{
  months: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
  days: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
  No: 'No',
  on: 'on',
  Less: 'Less',
  More: 'More'
}

max max

Any number which should be the max color.

onClick on-click

A function that should be called if clicked, will receive an object as first parameter:

{
  count: 123,
  date: DateObject,
  entry: {
    counting: 123,
    created_at: "2018-01-24"
    // every property you pass in your entries.
  }
}

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

Thanks @DKirwan for the initial calendar-heatmap.

FAQs

Package last updated on 16 Jun 2019

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