小编Mar*_*rin的帖子

每个列上的 HighCharts 颜色 - 列范围栏

关于 Highcharts 的问题,如何在每个 columnrange bar 上设置不同的颜色。我尝试了一些选项,但无法使其工作。

我的尝试示例:

这是我在 JSFiddle 上的代码:

https://jsfiddle.net/1abugmka/#&togetherjs=N72vHyNcPL

$(function () {

    $('#container').highcharts({

        chart: {
            type: 'columnrange',
            inverted: true,
            renderTo: 'container',
        },
        tooltip: {
          pointFormat: ""
        },
        title: {
            text: ''
        },
         credits: {
        enabled: false
      },
        xAxis: {
             type: 'datetime',
             categories:['1','2']
        },
        yAxis:{
          labels: {
            enabled: false
         },
         title: {
          text: 'Months'
        }
        },
         colors: ['#562F1E', '#AF7F24'],
        series: [{
           data: [
                [Date.UTC(2015, 10, 01),Date.UTC(2015, 02, 04)],
                [Date.UTC(2014, 10, 01),Date.UTC(2014, 02, 04)],

            ] …
Run Code Online (Sandbox Code Playgroud)

html javascript jquery charts highcharts

2
推荐指数
1
解决办法
1540
查看次数

带时间戳的Python输出文件

大家好,我在输出带有时间戳的文件时遇到了一些问题,这是我的代码

input_file  = open('DVBSNOOP/epg_slo_sort.txt', "r") # read
output_file = open('SORT/epg_slo_xml.txt', "w") # write 

for line in input_file:
    line = re.sub(r"\d{8}:|\d{7}:|\d{6}:|\d{5}:|\d{4}:","", line) # remove nubers from start line example --> 10072633: etc...
    line = line.replace("[=  --> refers to PMT program_number]","").replace("Service_ID:","Program") # remove =  --> refers to PMT program_number] and replace Service_ID to Program
    line = line.replace("0xdce","").replace("Start_time:","Start") # remove 0xdce and change Start_time to start
    line = line.replace("0x0","") # remove 0xdce 
    line = line.replace("event_name:","Title") # change to Title from event_name
    line = …
Run Code Online (Sandbox Code Playgroud)

python regex postgresql replace

1
推荐指数
1
解决办法
7300
查看次数

标签 统计

charts ×1

highcharts ×1

html ×1

javascript ×1

jquery ×1

postgresql ×1

python ×1

regex ×1

replace ×1