V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
lively
V2EX  ›  Python

highcharts的x轴的数据是字符串列表的话从外部引入不行的么

  •  
  •   lively · 2013-02-02 14:03:14 +08:00 · 2844 次点击
    这是一个创建于 4114 天前的主题,其中的信息可能已经有所发展或是发生改变。
    如果是直接在script写入实际的字符串列表,如['天津','北京','上海']就可以显示,但是如果用${loc_x}从外部引入就失败了,loc_x就是上面的位置列表
    6 条回复    1970-01-01 08:00:00 +08:00
    thedevil5032
        1
    thedevil5032  
       2013-02-02 14:19:35 +08:00 via Android
    只是来说我认识一个女生也用这个头像。第一次看到的时候觉得很恐怖。。
    lively
        2
    lively  
    OP
       2013-02-02 14:38:51 +08:00
    @thedevil5032 = = 明明是很喜感的,一点都不恐怖。。。
    mckelvin
        3
    mckelvin  
       2013-02-02 14:43:08 +08:00 via iPhone
    只是来说我认识一个女生也用这个头像。第一次看到的时候觉得很恐怖。。
    lively
        4
    lively  
    OP
       2013-02-02 14:45:55 +08:00
    @mckelvin miaocai你又调皮了,快看正题啊,我今天要被这个虐出X了,怎么都试不出来
    mckelvin
        5
    mckelvin  
       2013-02-02 14:58:44 +08:00 via iPhone
    @lively 我Google了下highcharts好像是个前端的js库吧?可能你的模板引擎不能直接通过${fooList}的方式把Python中的list转为javascript用的json array,我猜。

    这个有没有帮助?
    http://stackoverflow.com/questions/7856684/how-to-populate-a-highcharts-axis-with-string-formatted-data-from-a-php-array
    bingwenshi
        6
    bingwenshi  
       2013-02-02 15:43:23 +08:00
    咦~ 金姐姐回家了,还写代码么?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1052 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:21 · PVG 06:21 · LAX 15:21 · JFK 18:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.