Used data attributes to toggle visibility of chart