Construct a failed result with error e.
e.
<insightdock/error.h>
static ChartResult failure(ChartError e);
ChartError