Socket
Socket
Sign inDemoInstall

mjml-chart

Package Overview
Dependencies
Maintainers
1
Versions
497
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-chart

mjml-chart


Version published
Weekly downloads
1.2K
increased by17.26%
Maintainers
1
Weekly downloads
 
Created
Source

mjml-chart for mjml

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

<mjml>
  <mj-body>
    <mj-container>
      <mj-section>
        <mj-column>
          <mj-chart chs="300x200" chd="t:10,20,30|15,25,35" cht="bvs" chxt="x,y" chxl="0:|A|B|C" />
        </mj-column>
      </mj-section>
    </mj-container>
  </mj-body>
</mjml>

sexy

attributedescriptionvalue examples
chtchart typebvg, p
chdchart data`t:10,20,30
chdstext format custom scaling-80,140
chofoutput fake format.png
chschart size400x400
chdltext for each series, to display in the legend`NASDAQ
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 labels`0:
chmline fills
chlsline thickness and solid/dashed style10, `3,6,3
chlpie chart labels`label1
chfBackground Fillsb0,lg,0,f44336,0.3,03a9f4,0.8
changif configuration1200, `1300
chlidoughnut chart inside label95K€, 45%
icacimage-charts enterprise account_idaccountId
ichmHMAC-SHA256 signature0785cf22a0381c2e0239e27c126de4181f501d11…

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

attributedefault values
aligncenter
altn/a
bordernone
border-radiusn/a
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 31 Oct 2016

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