Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
chartist-html
Advanced tools
html store and no-JavaScript input syntax for Chartist.js charts. Includes JavaScript code that brings static html snippets back to life once they are rendered.
Proposal for a JS-less input syntax for Chartist.js charts, written in pure HTML. ChartistHtml
brings static html snippets back to life on command, including tooltips, custom high-level options and number formatting using numeral
.
Simply install using bower:
bower install --save chartist-html
Create your first chart and include it your html:
<div class="cts" data-type="bar" data-options="stacked|horizontal">
<ul>
<li class="cts__labels">May|June|July|August|September</li>
<li class="cts__series" data-name="Federal">1|2|3|4|5</li>
<li class="cts__series" data-name="State">1|2|3|4|5</li>
<li class="cts__series" data-name="Local">1|2|3|4|5</li>
</ul>
</div>
Add the script once document is loaded:
ChartistHtml.render();
The unordered list tag is now hidden (in case you didn't readily style it so), and has the fully rendered Chartist.js chart as its sibling:
<div class="cts" data-type="bar" data-options="stacked|horizontal">
<ul>...</ul>
<div class="ct-chart">
<svg><!-- --></svg>
</div>
</div>
This library gives you the option to store all chart data in your html without having to add any JavaScript dependencies. This will come in handy if:
Features:
FAQs
html store and no-JavaScript input syntax for Chartist.js charts. Includes JavaScript code that brings static html snippets back to life once they are rendered.
We found that chartist-html demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.