You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@record-evolution/widget-heatmap

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@record-evolution/widget-heatmap

Webcomponent widget-heatmap following open-wc recommendations

1.0.6
latest
Source
npmnpm
Version published
Weekly downloads
2
-66.67%
Maintainers
2
Weekly downloads
 
Created
Source

<widget-heatmap>

This webcomponent follows the open-wc recommendation.

Installation

npm i @record-evolution/widget-heatmap

Usage

<script type="module">
    import 'widget-heatmap/widget-heatmap.js'
</script>

<widget-heatmap-1.7.0></widget-heatmap-1.7.0>

Expected data format

Please take a look at the src/default-data.json to see what data is expected to make the widget show content.

Interfaces

Style options

The following options are available for styling the overall graph and individual lines as well as the graph legend.

The SeriesOptions type can either be line or dots. This selection affects the following styling options.

  interface Point {
    radius: number,
    pointStyle: 'circle' | 'cross' | 'crossRot' | 'dash' | 'line' | 'rect' | 'rectRounded' | 'rectRot' | 'star' | 'triangle' | false,
    backgroundColor: string,
    borderColor: string,
    borderWidth: number
  }


  interface Line {
    backgroundColor: string,
    borderColor: string,
    borderWidth: number,
    fill: boolean,
  }

Tooling configs

For most of the tools, the configuration is in the package.json to reduce the amount of files in your project.

If you customize the configuration a lot, you can consider moving them to individual files.

Local Demo with web-dev-server

npm start

To run a local development server that serves the basic demo located in demo/index.html

Keywords

widget

FAQs

Package last updated on 24 Jun 2025

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