推荐学习书目
› 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 · Feb 2, 2013 · 3909 views
    This topic created in 4990 days ago, the information mentioned may be changed or developed.
    如果是直接在script写入实际的字符串列表,如['天津','北京','上海']就可以显示,但是如果用${loc_x}从外部引入就失败了,loc_x就是上面的位置列表
    6 replies  •  1970-01-01 08:00:00 +08:00
    thedevil5032
        1
    thedevil5032  
       Feb 2, 2013 via Android
    只是来说我认识一个女生也用这个头像。第一次看到的时候觉得很恐怖。。
    lively
        2
    lively  
    OP
       Feb 2, 2013
    @thedevil5032 = = 明明是很喜感的,一点都不恐怖。。。
    mckelvin
        3
    mckelvin  
       Feb 2, 2013 via iPhone
    只是来说我认识一个女生也用这个头像。第一次看到的时候觉得很恐怖。。
    lively
        4
    lively  
    OP
       Feb 2, 2013
    @mckelvin miaocai你又调皮了,快看正题啊,我今天要被这个虐出X了,怎么都试不出来
    mckelvin
        5
    mckelvin  
       Feb 2, 2013 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  
       Feb 2, 2013
    咦~ 金姐姐回家了,还写代码么?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2238 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 04:29 · PVG 12:29 · LAX 21:29 · JFK 00:29
    ♥ Do have faith in what you're doing.