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

mjml-chart

Package Overview
Dependencies
Maintainers
1
Versions
505
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-chart

mjml-chart

  • 4.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
962
increased by129.05%
Maintainers
1
Weekly downloads
 
Created
Source

mjml-chart for mjml

Build Status Coveralls branch Deps NPM version Downloads extra

Displays charts as images in your email. Note that the chart can be animated (gif) when the chan attribute is specified.

🎩 Usage
<mjml>
  <mj-body>
    <mj-container>
      <mj-section>
        <mj-column>
          <mj-chart chs="700x200" chd="s:theresadifferencebetweenknowingthepathandwalkingthepath" cht="bvs" chxt="y" chf="b0,lg,90,4CA4F5,0.1,C371D3,0.8,EA469E,1" />
        </mj-column>
      </mj-section>
    </mj-container>
  </mj-body>
</mjml>

🚀 Setup
npm install mjml-chart --save
🚧 Documentation
attributedescriptionvalue examples
chtchart typebvg, p
chdchart datat:10,20,30|15,25,35
chdstext format custom scaling-80,140
chofoutput fake format.png
chschart size400x400
chdltext for each series, to display in the legendNASDAQ|FTSE100|DOW
chdlschart legend text and style9e9e9e,17
chggrid lines1,1, 0,1,1,5
chcoseries colorsFFC48C, FF0000,00FF00,0000FF
chttchart titleMy beautiful chart
chtschart title colors and font size00FF00,17
chxtaxis to apply labels toy, x,y
chxlcustom axis labels0:|Jan|July|Jan, 0:|Jan|July|Jan|1|10|20|30
chmline fills
chlsline thickness and solid/dashed style10, 3,6,3|5
chlpie chart labelslabel1|label2
chmachart margins30,30,30,30, 40,20
chfBackground Fillsb0,lg,0,f44336,0.3,03a9f4,0.8
changif configuration1200, 1300|easeInOutSine
chlidoughnut chart inside label95K€, 45%
icacimage-charts enterprise account_idaccountId
ichmHMAC-SHA256 signature0785cf22a0381c2e0239e27c126de4181f501d11…
icwtForce watermark display even if the chart was signed with an enterprise account0, 1

Since mjml-chart is a wrapper for mjml-image, mjml-image attributes are also available:

attributedefault values
aligncenter
altn/a
bordernone
border-radius0
container-background-colorn/a
padding-bottomn/a
padding-leftn/a
padding-rightn/a
padding-topn/a
padding10px 25px
titlen/a
vertical-alignn/a

Note:

  • src attribute is not customizable, it's generated by mjml-chart
  • width and height are automatically generated by mjml-chart based on the chs attribute

FAQs

Package last updated on 13 May 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