chart2: [loplugin:literaltoboolconversion]

Change-Id: I94d34c85cdf6b56e4378e245e8cb5fe192619226