fixed line chart so it updates from value of inputtext field