|
|
|
@ -17,7 +17,8 @@
|
|
|
|
|
# You should have received a copy of the GNU Lesser General Public License |
|
|
|
|
# along with pygal. If not, see <http://www.gnu.org/licenses/>. |
|
|
|
|
from pygal import ( |
|
|
|
|
Line, Dot, Pie, Radar, Config, Bar, Funnel, Worldmap, Histogram, Gauge) |
|
|
|
|
Line, Dot, Pie, Radar, Config, Bar, Funnel, Worldmap, |
|
|
|
|
SupranationalWorldmap, Histogram, Gauge) |
|
|
|
|
from pygal._compat import u |
|
|
|
|
from pygal.test.utils import texts |
|
|
|
|
from pygal.test import pytest_generate_tests, make_data |
|
|
|
@ -259,7 +260,8 @@ def test_no_data():
|
|
|
|
|
|
|
|
|
|
def test_include_x_axis(Chart): |
|
|
|
|
chart = Chart() |
|
|
|
|
if Chart in (Pie, Radar, Funnel, Dot, Gauge, Worldmap, Histogram): |
|
|
|
|
if Chart in (Pie, Radar, Funnel, Dot, Gauge, Worldmap, |
|
|
|
|
SupranationalWorldmap, Histogram): |
|
|
|
|
return |
|
|
|
|
if not chart.cls._dual: |
|
|
|
|
data = 100, 200, 150 |
|
|
|
|