Is it possible to use dashbaord avriables in Echarts plugin


Is it possible to use dashbaord’s variables in Echarts plugin?

i use below code to get the value in dashboard, is there any better way to do it?
var targetYear=document.getElementById(“TargetYear”).title ;


I think you’ll have more luck getting an answer in that plugin’s repo: