2016-12-13 08:41:38 -05:00
|
|
|
! Copyright (C) 2016 Alexander Ilin.
|
|
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
|
|
|
|
USING: accessors colors.constants google.charts
|
2016-12-21 18:25:00 -05:00
|
|
|
google.charts.private kernel math present sequences tools.test ;
|
2016-12-13 08:41:38 -05:00
|
|
|
IN: google.charts.tests
|
|
|
|
|
|
2016-12-21 18:25:00 -05:00
|
|
|
{ t } [
|
|
|
|
|
|
|
|
|
|
{ 0 0 } <line>
|
|
|
|
|
{ 0 0 } <line> COLOR: red >>background
|
|
|
|
|
[ chart>url present length ] bi@ <
|
2016-12-13 08:41:38 -05:00
|
|
|
] unit-test
|
|
|
|
|
|
2016-12-21 18:25:00 -05:00
|
|
|
{ t } [
|
|
|
|
|
{ 0 0 } <line>
|
|
|
|
|
{ 0 0 } <line> COLOR: red >>foreground
|
|
|
|
|
[ chart>url present length ] bi@ <
|
2016-12-13 08:41:38 -05:00
|
|
|
] unit-test
|
|
|
|
|
|
2016-12-21 18:25:00 -05:00
|
|
|
{ t } [
|
|
|
|
|
"" <formula>
|
|
|
|
|
"" <formula> t >>data-scale
|
|
|
|
|
[ chart>url present length ] bi@ <
|
2016-12-13 08:41:38 -05:00
|
|
|
] unit-test
|
|
|
|
|
|
2016-12-21 18:25:00 -05:00
|
|
|
{ t } [
|
|
|
|
|
{ 0 0 } <line>
|
|
|
|
|
{ 0 0 } <line> f >>width f >>height
|
|
|
|
|
[ chart>url present length ] bi@ >
|
2016-12-13 08:41:38 -05:00
|
|
|
] unit-test
|
|
|
|
|
|
2016-12-21 18:25:00 -05:00
|
|
|
{ t } [
|
|
|
|
|
{ 0 0 } <line>
|
|
|
|
|
{ 0 0 } <line> { 0 0 } >>margin
|
|
|
|
|
[ chart>url present length ] bi@ <
|
2016-12-13 08:41:38 -05:00
|
|
|
] unit-test
|
|
|
|
|
|
2016-12-21 18:25:00 -05:00
|
|
|
{ t } [
|
|
|
|
|
{ 0 0 } <line>
|
|
|
|
|
{ 0 0 } <line> 5 >>bar-width
|
|
|
|
|
[ chart>url present length ] bi@ <
|
2016-12-13 08:41:38 -05:00
|
|
|
] unit-test
|