A chatbot produced Vega-Lite specifications for CityPulse. Write an automatic auditor: read one JSON specification from standard input and apply these rules, in this order:
- R1 — on a
barorareamark, a quantitative x or y encoding withscale.zeroset tofalse:R1 truncated y axis on a bar chart (scale.zero is false). - R2 — an
arc(pie) mark whose colour field (or, if none, theta field) has more than 5 distinct values indata.values:R2 pie chart with 6 slices (more than 5). - R3 — no
title:R3 no chart title. - R4 — colour scheme
rainboworjet(the cyclicsinebowis fine for cyclic data such as hour of day):R4 rainbow colour scheme 'rainbow'. - R5 — a field whose name contains
date,time,monthorday(case-insensitive) encoded with a type other than temporal or ordinal:R5 time field 'month' on x encoded as nominal. - R6 —
resolve.scale.yisindependent(dual axes):R6 dual y axes (independent scales).
The mark may be a string ("bar") or an object ({"type": "bar"}). First print mark: bar, channels: x, y (channels sorted), then the issues, then 2 issue(s) found or No issues found.