44
55#include " base/anim/interpolated.h"
66#include " base/gfx/color.h"
7- #include " base/gfx/colorgradient.h"
87#include " base/gfx/colorpalette.h"
98#include " base/gfx/colortransform.h"
109#include " base/gfx/font.h"
@@ -106,7 +105,7 @@ Chart Chart::def()
106105 .marker = {
107106 DataPoint
108107 {
109- .colorGradient = Gfx::ColorGradient (
108+ .colorGradient = {
110109 {
111110 {
112111 0.0 ,
@@ -128,7 +127,7 @@ Chart Chart::def()
128127 1.0 ,
129128 Gfx::Color::RGB (0xf3f239 )
130129 }
131- }) ,
130+ }} ,
132131 .colorPalette = ::Anim::Interpolated<Gfx::ColorPalette>(getDefaultColorPalette ()),
133132 .minLightness = 0.4 ,
134133 .maxLightness = -0.4 ,
@@ -171,7 +170,6 @@ Chart Chart::def()
171170 {
172171 .color = Gfx::Color (),
173172 .textAlign = Anim::Interpolated<Text::TextAlign>(Text::TextAlign::center),
174- .backgroundColor = Gfx::Color (),
175173 .numberFormat = ::Text::NumberFormat::grouped,
176174 .maxFractionDigits = 3 ,
177175 .numberScale = ::Text::NumberScale{}
@@ -215,7 +213,6 @@ Chart Chart::def()
215213 {
216214 .color = Gfx::Color::Gray (0.6 ),
217215 .textAlign = Anim::Interpolated<Text::TextAlign>(Text::TextAlign::left),
218- .backgroundColor = Gfx::Color (),
219216 .numberFormat = ::Text::NumberFormat::prefixed,
220217 .maxFractionDigits = 3 ,
221218 .numberScale = ::Text::NumberScale{}
@@ -253,7 +250,6 @@ Chart Chart::def()
253250 {
254251 .color = Gfx::Color::Gray (0.6 ),
255252 .textAlign = Anim::Interpolated<Text::TextAlign>(Text::TextAlign::left),
256- .backgroundColor = Gfx::Color (),
257253 .numberFormat = ::Text::NumberFormat::prefixed,
258254 .maxFractionDigits = 3 ,
259255 .numberScale = ::Text::NumberScale{}
@@ -308,7 +304,6 @@ Chart Chart::def()
308304 {
309305 .color = Gfx::Color::Gray (0.6 ),
310306 .textAlign = Anim::Interpolated<Text::TextAlign>(Text::TextAlign::left),
311- .backgroundColor = Gfx::Color (),
312307 .numberFormat = ::Text::NumberFormat::prefixed,
313308 .maxFractionDigits = 3 ,
314309 .numberScale = ::Text::NumberScale{}
@@ -346,7 +341,6 @@ Chart Chart::def()
346341 {
347342 .color = Gfx::Color::Gray (0.6 ),
348343 .textAlign = Anim::Interpolated<Text::TextAlign>(Text::TextAlign::left),
349- .backgroundColor = Gfx::Color (),
350344 .numberFormat = ::Text::NumberFormat::prefixed,
351345 .maxFractionDigits = 3 ,
352346 .numberScale = ::Text::NumberScale{}
@@ -419,7 +413,6 @@ Chart Chart::def()
419413 {
420414 .color = Gfx::Color::Gray (0.6 ),
421415 .textAlign = Anim::Interpolated<Text::TextAlign>(Text::TextAlign::left),
422- .backgroundColor = Gfx::Color (),
423416 .numberFormat = ::Text::NumberFormat::prefixed,
424417 .maxFractionDigits = 3 ,
425418 .numberScale = ::Text::NumberScale{}
@@ -444,7 +437,6 @@ Chart Chart::def()
444437 {
445438 .color = Gfx::Color::Gray (0.6 ),
446439 .textAlign = Anim::Interpolated<Text::TextAlign>(Text::TextAlign::left),
447- .backgroundColor = Gfx::Color (),
448440 .numberFormat = ::Text::NumberFormat::prefixed,
449441 .maxFractionDigits = 3 ,
450442 .numberScale = ::Text::NumberScale{}
@@ -476,7 +468,6 @@ Chart Chart::def()
476468 {
477469 .color = Gfx::Color::RGB (0x494949 ),
478470 .textAlign = Anim::Interpolated<Text::TextAlign>(Text::TextAlign::center),
479- .backgroundColor = Gfx::Color (),
480471 .numberFormat = ::Text::NumberFormat::prefixed,
481472 .maxFractionDigits = 3 ,
482473 .numberScale = ::Text::NumberScale{}
@@ -501,7 +492,6 @@ Chart Chart::def()
501492 {
502493 .color = Gfx::Color::RGB (0x494949 ),
503494 .textAlign = Anim::Interpolated<Text::TextAlign>(Text::TextAlign::center),
504- .backgroundColor = Gfx::Color (),
505495 .numberFormat = ::Text::NumberFormat::prefixed,
506496 .maxFractionDigits = 3 ,
507497 .numberScale = ::Text::NumberScale{}
@@ -526,7 +516,6 @@ Chart Chart::def()
526516 {
527517 .color = Gfx::Color::Gray (0.65 ),
528518 .textAlign = Anim::Interpolated<Text::TextAlign>(Text::TextAlign::left),
529- .backgroundColor = Gfx::Color (),
530519 .numberFormat = ::Text::NumberFormat::prefixed,
531520 .maxFractionDigits = 3 ,
532521 .numberScale = ::Text::NumberScale{}
0 commit comments