Implement charts.createBasic to replace legacy flot