Skip to content

Commit

Permalink
add data-value attribute to annotation cells
Browse files Browse the repository at this point in the history
  • Loading branch information
blackhexagon committed Jun 26, 2023
1 parent 3240168 commit 6b6355d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/accolade-chart-lib.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -6735,7 +6735,7 @@ function redrawLineChart({ chart, set: set2, xScale, yScale, colors: colors$1, l
</thead>
<tbody>
${rest.map((row) => `
<tr>${row.map((it) => `<td>${it}</td>`).join("")}</tr>
<tr>${row.map((it) => `<td data-value="${it}">${it}</td>`).join("")}</tr>
`).join("")}
</tbody>
</table>
Expand Down
2 changes: 1 addition & 1 deletion dist/accolade-chart-lib.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/visualio/accolade-chart-lib/issues"
},
"homepage": "https://github.com/visualio/accolade-chart-lib#readme",
"version": "1.0.16",
"version": "1.0.17",
"license": "MIT",
"main": "dist/accolade-chart-lib.umd.js",
"module": "dist/accolade-chart-lib.es.js",
Expand Down
2 changes: 1 addition & 1 deletion src/charts/lineChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export function redrawLineChart({chart, set, xScale, yScale, colors, labels, hei
</thead>
<tbody>
${rest.map(row => `
<tr>${row.map(it => `<td>${it}</td>`).join('')}</tr>
<tr>${row.map(it => `<td data-value="${it}">${it}</td>`).join('')}</tr>
`).join('')}
</tbody>
</table>
Expand Down

0 comments on commit 6b6355d

Please sign in to comment.