Map data fields to visual properties for flexible visualization
CristalyseChart() .data(data) .mapping(x: 'date', y: 'temperature') .geomLine() .build()
CristalyseChart() .data(data) .mapping(x: 'month', y: 'revenue', size: 'profit', color: 'region') .geomPoint() .build()
CristalyseChart() .data(data) .mapping( x: 'week', y: 'growth', color: isRevenue ? 'revenue' : 'profit', ) .geomLine() .build()
CristalyseChart() .data(data) .mapping( x: 'hour', y: 'traffic', size: 'conversions', color: 'channel', ) .geomPoint() .build()