first go at implementing Chart cross-platform