Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
chart2music
Advanced tools
Changelog
1.16.3
Readme
Chart2Music turns charts into music so the blind can hear data.
Include the following script tag on your page:
<script src="https://cdn.jsdelivr.net/npm/chart2music"></script>
On your page, you will also need your chart. For the sake of simplicity, here's an example with an image and an element for screen reader text:
<img src="mychart.png" id="MyChart" />
<div id="screenReaderText"></div>
Now, in your javascript, you can start a new instance of Chart2Music. In this example, we will include a simple bar chart, and point it to the img element above.
const {err} = c2mChart({
type: "bar",
element: document.getElementById("MyChart"),
cc: document.getElementById("screenReaderText"),
data: [1,2,3]
});
// If there was an error in generating the chart, print the error message
if(err){
console.error(err);
}
What will the user experience be? When the user navigates to the image, a description will be automatically generated, telling the user that there is interaction available. Then, the user can use arrow keys or keyboard shortcuts to interact with the data.
For code examples in action, see the Chart2Music Examples collection on Codepen.
Some of the examples you will find there include:
You can also find examples of integrations with other visualization libraries:
Go to chart2music.com for the full tutorial.
FAQs
Turns charts into music so the blind can hear data
The npm package chart2music receives a total of 1,703 weekly downloads. As such, chart2music popularity was classified as popular.
We found that chart2music demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.