rename variables, fix code styles
move duplication of define  CHARTS_CSV_CHARTID_BASE to CMakeLists.txt