Skip to content

Commit

Permalink
Merge pull request #1149 from nychealth/feature-chart-printer
Browse files Browse the repository at this point in the history
fix nocompare when it's not on
  • Loading branch information
mmontesanonyc authored Oct 22, 2024
2 parents 5ac072c + deb9b6f commit aac90c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/data-explorer/comparisons.js
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,8 @@ const renderComparisonsChart = (
vegaSpec.marks[3].interactive = false; // set text layers to non-interactive
vegaSpec.marks[4].interactive = false; // set axis layers to non-interactive
vegaSpec.marks[5].interactive = false;
vegaSpec.marks[6].interactive = false;

vegaSpec.marks[6] ? vegaSpec.marks[6] = false : {}; // if noCompare, set that layer to interactive: false

vegaEmbed("#trend", vegaSpec,{
actions: {
Expand Down

0 comments on commit aac90c5

Please sign in to comment.