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

megadraft-chart-plugin

Package Overview
Dependencies
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

megadraft-chart-plugin

Megadraft chart plugin

0.4.6
latest
npm
Version published
Weekly downloads
7
Maintainers
4
Weekly downloads
 
Created
Source

Chart - Megadraft Plugin

Build Status

Component

It's a Megadraft Plugin that render charts using data given by user.

Highcharts is a Free for Non-commercial usage Javascript Library. Since this plugin use it to render charts, you must have a Highcharts License to use as commercial purpose.

Highcharts is a charting library written in pure JavaScript, offering an easy way of adding interactive charts to your web site or web application. Highcharts currently supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types. See more

Architecture

Architecture Diagram

On select Chart plugin at Megadraft plugin modal, a ModalChart component will be instantiated.

ModalChart is a modal component splitted in two parts: form and preview. There are three chart type options: line, column and pie. Each one has their own Form component:

  • FormLine for line chart;
  • FormColumn for column chart;
  • FormPie for pie chart;

Chart is the component in charge of render a chart preview. Chart Preview is re-render whenever a change on the Form is made.

HighchartsConnector is responsible for translating the form data into valid data to Highcharts lib.

To complete chart edition, APLICAR button should be clicked. It's possible to edit a Chart by clicking in Megadraft edit block button. A SVG copy of the chart is added to block data.

Line Chart preview Example

Line Chart preview Example

Install dependencies (npm)

make setup

Running dev-server

make run
open http://localhost:8080/demo

Testing

To run test and lint

make test

You can also run tests as watch mode:

make watch_unit

Keywords

megadraft

FAQs

Package last updated on 19 Jun 2018

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