add setState Inface
Merge branch 'source_x' of https://github.com/sjpsega/beechart into source_x