chart2music
Advanced tools
Comparing version 1.3.1 to 1.3.2
{ | ||
"name": "chart2music", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"main": "dist/index.js", | ||
@@ -55,5 +55,5 @@ "module": "dist/index.mjs", | ||
"@typescript-eslint/eslint-plugin": "5.33.0", | ||
"@typescript-eslint/parser": "5.33.0", | ||
"@typescript-eslint/parser": "5.35.1", | ||
"concurrently": "7.3.0", | ||
"eslint": "8.22.0", | ||
"eslint": "8.23.0", | ||
"eslint-config-prettier": "8.5.0", | ||
@@ -64,3 +64,3 @@ "eslint-plugin-jsdoc": "39.3.6", | ||
"jest": "28.1.3", | ||
"jest-environment-jsdom": "28.1.3", | ||
"jest-environment-jsdom": "29.0.1", | ||
"lint-staged": "13.0.3", | ||
@@ -71,3 +71,3 @@ "prettier": "2.7.1", | ||
"rimraf": "3.0.2", | ||
"rollup": "2.78.0", | ||
"rollup": "2.78.1", | ||
"rollup-plugin-delete": "2.0.0", | ||
@@ -77,3 +77,3 @@ "rollup-plugin-dts": "4.2.2", | ||
"tslib": "2.4.0", | ||
"typescript": "4.7.4" | ||
"typescript": "4.8.2" | ||
}, | ||
@@ -80,0 +80,0 @@ "resolutions": { |
@@ -28,6 +28,7 @@ # Chart2Music | ||
On your page, you will also need your chart. For the sake of simplicity, here's an example with an image: | ||
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: | ||
```html | ||
<img src="mychart.png" id="MyChart" /> | ||
<div id="screenReaderText"></div> | ||
``` | ||
@@ -38,7 +39,13 @@ | ||
```javascript | ||
c2mChart({ | ||
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); | ||
} | ||
``` | ||
@@ -45,0 +52,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
134691
3183
75