![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@byu-oit/line-chart
Advanced tools
Generate a line chart in svg format. Intended to be used to generate an API response.
Generate a line chart in svg format to be used as an API response.
import lineChart from '@byu-oit/line-chart'
const myData = [10, 12, 14, 24, 38]
const myDataLabels = ['A', 'B', 'C', 'D', 'E']
const chartSvg = lineChart({data: myData, labels: myDataLabels})
The line chart function takes a single configuration parameter.
key | type | required? | description |
---|---|---|---|
data | Array of Numbers, or 2 Dimensional Array of Numbers | required | An array of values to chart. For example, if you want to chart visits per day, your data could be [104, 78, 120, 88] with labels of ['May 13', 'May 14', 'May 15', 'May 16'] . The values may themselves be arrays, but must all have the same length. |
labels | Array of Strings | required | An array of string labels corresponding by index to the associated data element. |
legendLabels | [string labels] | optional | An array of labels for the line colors. For example, you could chart visits per day, with each browser in a different color. |
colors | Array of Strings | optional | Supply custom colors for the lines. |
FAQs
Generate a line chart in svg format. Intended to be used to generate an API response.
The npm package @byu-oit/line-chart receives a total of 2 weekly downloads. As such, @byu-oit/line-chart popularity was classified as not popular.
We found that @byu-oit/line-chart demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 11 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.