changed url
added dynamic ranged of chart and legend
added dynamic ranged of chart and legend