if(jsonParam['position'] == 'Left'):
    dataviz.Legend.Dock =  LegendDock.Left
elif(jsonParam['position'] == 'Right'):
    dataviz.Legend.Dock = LegendDock.Right