- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
前一段时间我在这里问我如何在点击图例时隐藏谷歌图表中的线条。现在我找到了一个解决方案,我可以如何做到这一点,你可以在 JSFIDDLE 上看到它的工作。但是有些小事情不起作用,例如:
有人可以帮助我吗?
这是我用来通过点击隐藏行的代码
google.visualization.events.addListener(chart, 'select', function () {
var sel = chart.getSelection();
// if selection length is 0, we deselected an element
if (sel.length > 0) {
// if row is undefined, we clicked on the legend
if (sel[0].row === null) {
var col = sel[0].column;
if (columns[col] == col) {
// hide the data series
columns[col] = {
label: data.getColumnLabel(col),
type: data.getColumnType(col),
calc: function () {
return null;
}
};
// grey out the legend entry
series[col - 1].color = '#CCCCCC';
}
else {
// show the data series
columns[col] = col;
series[col - 1].color = null;
}
var view = new google.visualization.DataView(data);
view.setColumns(columns);
chart.draw(view, options);
}
}
});
最佳答案
虽然 series
对象正在正确构建,
它永远不会在图表上更新
重新绘制前需要设置选项
chart.setOption('系列', 系列);
请参阅以下工作片段...
google.charts.load('current', {
callback: drawVisualization,
packages: ['corechart', 'controls','line']
});
function drawVisualization() {
var dashboard = new google.visualization.Dashboard(
document.getElementById('dashboard'));
var control = new google.visualization.ControlWrapper({
'controlType': 'ChartRangeFilter',
'containerId': 'control',
'options': {
// Filter by the date axis.
'filterColumnIndex': 0,
'ui': {
'chartType': 'LineChart',
'chartOptions': {
'chartArea': {'width': '80%'},
'hAxis': {'baselineColor': 'none', format: "HH:mm" }
,'vAxis': {minValue: 0}
}
}
},
});
var data = new google.visualization.DataTable({"cols":[{"label":"Date","type":"datetime"},{"label":"RPI1","type":"number"},{"label":"RPI2","type":"number"},{"label":"RPI3","type":"number"},{"label":"RPI4","type":"number"},{"label":"RPI5","type":"number"},{"label":"RPI6","type":"number"},{"label":"RPI7","type":"number"},{"label":"RPI8","type":"number"}],"rows":[{"c":[{"v":"Date(2017, 0, 11, 12, 51, 40)"},{"v":23},{"v":22},{"v":23},{"v":23},{"v":21},{"v":20},{"v":23},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 12, 51, 50)"},{"v":22},{"v":22},{"v":21},{"v":21},{"v":21},{"v":20},{"v":22},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 12, 52, 1)"},{"v":21},{"v":22},{"v":20},{"v":22},{"v":23},{"v":21},{"v":22},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 12, 52, 11)"},{"v":23},{"v":21},{"v":22},{"v":22},{"v":20},{"v":20},{"v":23},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 12, 52, 22)"},{"v":23},{"v":22},{"v":20},{"v":22},{"v":23},{"v":20},{"v":21},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 12, 52, 32)"},{"v":20},{"v":20},{"v":21},{"v":22},{"v":22},{"v":22},{"v":23},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 12, 52, 42)"},{"v":20},{"v":21},{"v":20},{"v":23},{"v":20},{"v":22},{"v":21},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 12, 52, 53)"},{"v":23},{"v":20},{"v":21},{"v":22},{"v":21},{"v":20},{"v":21},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 12, 53, 3)"},{"v":23},{"v":22},{"v":23},{"v":21},{"v":20},{"v":22},{"v":22},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 12, 53, 13)"},{"v":23},{"v":22},{"v":23},{"v":23},{"v":20},{"v":21},{"v":23},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 12, 53, 24)"},{"v":22},{"v":20},{"v":20},{"v":21},{"v":22},{"v":23},{"v":23},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 12, 53, 34)"},{"v":22},{"v":21},{"v":22},{"v":21},{"v":23},{"v":21},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 12, 53, 44)"},{"v":23},{"v":22},{"v":23},{"v":23},{"v":21},{"v":20},{"v":20},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 12, 53, 55)"},{"v":20},{"v":21},{"v":23},{"v":23},{"v":22},{"v":21},{"v":21},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 12, 54, 5)"},{"v":22},{"v":20},{"v":23},{"v":20},{"v":20},{"v":20},{"v":21},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 12, 54, 15)"},{"v":22},{"v":20},{"v":21},{"v":23},{"v":20},{"v":23},{"v":20},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 12, 54, 26)"},{"v":21},{"v":22},{"v":22},{"v":21},{"v":21},{"v":20},{"v":21},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 12, 54, 36)"},{"v":22},{"v":21},{"v":20},{"v":22},{"v":23},{"v":23},{"v":23},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 12, 54, 46)"},{"v":21},{"v":22},{"v":21},{"v":22},{"v":21},{"v":20},{"v":20},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 12, 54, 57)"},{"v":20},{"v":23},{"v":21},{"v":20},{"v":23},{"v":22},{"v":23},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 12, 55, 7)"},{"v":23},{"v":20},{"v":21},{"v":20},{"v":22},{"v":20},{"v":21},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 12, 55, 17)"},{"v":22},{"v":23},{"v":23},{"v":21},{"v":20},{"v":20},{"v":23},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 12, 55, 28)"},{"v":21},{"v":21},{"v":23},{"v":23},{"v":23},{"v":21},{"v":22},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 12, 55, 38)"},{"v":23},{"v":22},{"v":20},{"v":23},{"v":22},{"v":23},{"v":20},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 12, 55, 48)"},{"v":23},{"v":21},{"v":21},{"v":23},{"v":23},{"v":21},{"v":21},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 12, 55, 59)"},{"v":23},{"v":20},{"v":20},{"v":23},{"v":23},{"v":20},{"v":22},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 12, 56, 9)"},{"v":23},{"v":23},{"v":23},{"v":21},{"v":23},{"v":20},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 12, 56, 19)"},{"v":20},{"v":21},{"v":23},{"v":22},{"v":23},{"v":20},{"v":22},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 12, 56, 30)"},{"v":23},{"v":21},{"v":22},{"v":21},{"v":22},{"v":22},{"v":20},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 12, 56, 40)"},{"v":21},{"v":20},{"v":22},{"v":22},{"v":23},{"v":23},{"v":23},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 12, 56, 50)"},{"v":23},{"v":20},{"v":23},{"v":21},{"v":23},{"v":23},{"v":23},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 12, 57, 1)"},{"v":23},{"v":20},{"v":21},{"v":21},{"v":21},{"v":22},{"v":21},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 12, 57, 11)"},{"v":21},{"v":22},{"v":21},{"v":20},{"v":22},{"v":22},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 12, 57, 22)"},{"v":23},{"v":23},{"v":22},{"v":22},{"v":22},{"v":21},{"v":21},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 12, 57, 32)"},{"v":22},{"v":21},{"v":23},{"v":22},{"v":23},{"v":22},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 12, 57, 42)"},{"v":22},{"v":23},{"v":20},{"v":22},{"v":20},{"v":22},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 12, 57, 52)"},{"v":23},{"v":22},{"v":21},{"v":23},{"v":21},{"v":22},{"v":20},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 12, 58, 3)"},{"v":20},{"v":23},{"v":23},{"v":23},{"v":21},{"v":20},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 12, 58, 13)"},{"v":21},{"v":20},{"v":20},{"v":20},{"v":21},{"v":22},{"v":21},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 12, 58, 23)"},{"v":21},{"v":21},{"v":22},{"v":23},{"v":20},{"v":22},{"v":20},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 12, 58, 34)"},{"v":20},{"v":21},{"v":23},{"v":22},{"v":20},{"v":20},{"v":22},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 12, 58, 44)"},{"v":23},{"v":22},{"v":21},{"v":21},{"v":20},{"v":20},{"v":23},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 12, 58, 54)"},{"v":22},{"v":21},{"v":22},{"v":21},{"v":23},{"v":22},{"v":22},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 12, 59, 5)"},{"v":21},{"v":22},{"v":20},{"v":23},{"v":20},{"v":21},{"v":21},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 12, 59, 15)"},{"v":23},{"v":21},{"v":20},{"v":22},{"v":23},{"v":23},{"v":23},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 12, 59, 26)"},{"v":23},{"v":23},{"v":21},{"v":21},{"v":21},{"v":20},{"v":20},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 12, 59, 36)"},{"v":21},{"v":20},{"v":21},{"v":22},{"v":20},{"v":23},{"v":22},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 12, 59, 46)"},{"v":20},{"v":21},{"v":22},{"v":23},{"v":21},{"v":23},{"v":20},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 12, 59, 57)"},{"v":20},{"v":22},{"v":23},{"v":21},{"v":20},{"v":20},{"v":20},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 0, 7)"},{"v":22},{"v":21},{"v":20},{"v":23},{"v":21},{"v":23},{"v":21},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 0, 17)"},{"v":21},{"v":20},{"v":23},{"v":20},{"v":21},{"v":20},{"v":20},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 0, 28)"},{"v":23},{"v":22},{"v":20},{"v":21},{"v":23},{"v":20},{"v":20},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 0, 38)"},{"v":23},{"v":23},{"v":22},{"v":21},{"v":21},{"v":23},{"v":23},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 0, 48)"},{"v":21},{"v":20},{"v":21},{"v":23},{"v":20},{"v":20},{"v":20},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 0, 59)"},{"v":21},{"v":22},{"v":21},{"v":22},{"v":20},{"v":22},{"v":21},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 1, 9)"},{"v":23},{"v":23},{"v":21},{"v":21},{"v":22},{"v":21},{"v":22},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 1, 19)"},{"v":20},{"v":23},{"v":23},{"v":23},{"v":23},{"v":22},{"v":23},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 1, 30)"},{"v":21},{"v":21},{"v":21},{"v":20},{"v":22},{"v":21},{"v":23},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 1, 40)"},{"v":23},{"v":21},{"v":22},{"v":20},{"v":21},{"v":22},{"v":23},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 1, 50)"},{"v":21},{"v":22},{"v":20},{"v":20},{"v":22},{"v":23},{"v":21},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 2, 1)"},{"v":20},{"v":23},{"v":22},{"v":20},{"v":21},{"v":20},{"v":23},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 2, 11)"},{"v":20},{"v":20},{"v":20},{"v":23},{"v":23},{"v":22},{"v":20},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 2, 21)"},{"v":20},{"v":21},{"v":22},{"v":20},{"v":21},{"v":23},{"v":20},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 2, 32)"},{"v":22},{"v":23},{"v":22},{"v":22},{"v":23},{"v":20},{"v":20},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 2, 42)"},{"v":22},{"v":20},{"v":21},{"v":22},{"v":20},{"v":23},{"v":22},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 2, 52)"},{"v":21},{"v":20},{"v":23},{"v":21},{"v":23},{"v":23},{"v":23},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 39, 50)"},{"v":21},{"v":22},{"v":22},{"v":22},{"v":20},{"v":23},{"v":23},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 40, 0)"},{"v":23},{"v":20},{"v":22},{"v":22},{"v":23},{"v":21},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 40, 10)"},{"v":23},{"v":23},{"v":23},{"v":22},{"v":23},{"v":21},{"v":23},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 40, 21)"},{"v":22},{"v":22},{"v":22},{"v":23},{"v":22},{"v":20},{"v":20},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 40, 31)"},{"v":22},{"v":22},{"v":23},{"v":20},{"v":21},{"v":21},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 40, 41)"},{"v":20},{"v":20},{"v":20},{"v":23},{"v":23},{"v":22},{"v":21},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 40, 51)"},{"v":22},{"v":21},{"v":23},{"v":20},{"v":22},{"v":20},{"v":20},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 41, 3)"},{"v":22},{"v":21},{"v":22},{"v":23},{"v":23},{"v":23},{"v":22},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 41, 13)"},{"v":23},{"v":23},{"v":23},{"v":22},{"v":20},{"v":21},{"v":20},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 41, 23)"},{"v":22},{"v":21},{"v":21},{"v":20},{"v":23},{"v":21},{"v":20},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 41, 34)"},{"v":20},{"v":21},{"v":23},{"v":21},{"v":20},{"v":22},{"v":20},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 41, 44)"},{"v":20},{"v":23},{"v":20},{"v":22},{"v":20},{"v":21},{"v":20},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 41, 54)"},{"v":20},{"v":20},{"v":22},{"v":20},{"v":20},{"v":20},{"v":22},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 42, 5)"},{"v":20},{"v":23},{"v":23},{"v":23},{"v":22},{"v":21},{"v":22},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 42, 15)"},{"v":21},{"v":20},{"v":23},{"v":22},{"v":22},{"v":22},{"v":23},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 42, 25)"},{"v":21},{"v":21},{"v":21},{"v":21},{"v":21},{"v":20},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 42, 36)"},{"v":20},{"v":20},{"v":21},{"v":22},{"v":21},{"v":22},{"v":23},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 42, 46)"},{"v":20},{"v":23},{"v":21},{"v":22},{"v":22},{"v":23},{"v":20},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 42, 56)"},{"v":22},{"v":20},{"v":20},{"v":23},{"v":21},{"v":21},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 43, 7)"},{"v":21},{"v":20},{"v":20},{"v":21},{"v":23},{"v":23},{"v":22},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 43, 17)"},{"v":20},{"v":20},{"v":21},{"v":20},{"v":23},{"v":22},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 43, 27)"},{"v":20},{"v":22},{"v":20},{"v":20},{"v":23},{"v":23},{"v":21},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 43, 37)"},{"v":23},{"v":23},{"v":20},{"v":23},{"v":22},{"v":21},{"v":23},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 43, 48)"},{"v":23},{"v":20},{"v":20},{"v":23},{"v":23},{"v":20},{"v":22},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 43, 58)"},{"v":23},{"v":20},{"v":20},{"v":21},{"v":20},{"v":21},{"v":21},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 44, 8)"},{"v":22},{"v":20},{"v":23},{"v":20},{"v":23},{"v":21},{"v":21},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 44, 19)"},{"v":20},{"v":20},{"v":21},{"v":23},{"v":21},{"v":22},{"v":22},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 44, 29)"},{"v":22},{"v":21},{"v":23},{"v":22},{"v":22},{"v":22},{"v":23},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 44, 39)"},{"v":20},{"v":23},{"v":21},{"v":22},{"v":20},{"v":23},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 44, 50)"},{"v":23},{"v":21},{"v":21},{"v":20},{"v":20},{"v":21},{"v":23},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 45, 0)"},{"v":22},{"v":22},{"v":20},{"v":20},{"v":22},{"v":21},{"v":22},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 45, 10)"},{"v":23},{"v":23},{"v":23},{"v":22},{"v":22},{"v":21},{"v":22},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 45, 21)"},{"v":23},{"v":21},{"v":20},{"v":23},{"v":20},{"v":22},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 45, 31)"},{"v":20},{"v":22},{"v":21},{"v":22},{"v":21},{"v":21},{"v":23},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 45, 41)"},{"v":20},{"v":22},{"v":23},{"v":21},{"v":20},{"v":20},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 45, 52)"},{"v":22},{"v":20},{"v":22},{"v":22},{"v":20},{"v":23},{"v":20},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 46, 3)"},{"v":21},{"v":23},{"v":22},{"v":20},{"v":21},{"v":23},{"v":23},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 46, 13)"},{"v":20},{"v":21},{"v":23},{"v":20},{"v":22},{"v":20},{"v":22},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 46, 23)"},{"v":21},{"v":20},{"v":21},{"v":20},{"v":21},{"v":20},{"v":21},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 46, 34)"},{"v":23},{"v":22},{"v":22},{"v":22},{"v":21},{"v":23},{"v":20},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 46, 44)"},{"v":23},{"v":23},{"v":20},{"v":20},{"v":23},{"v":23},{"v":21},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 46, 54)"},{"v":23},{"v":20},{"v":22},{"v":20},{"v":23},{"v":22},{"v":23},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 47, 5)"},{"v":22},{"v":23},{"v":21},{"v":20},{"v":23},{"v":22},{"v":23},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 47, 15)"},{"v":21},{"v":22},{"v":20},{"v":21},{"v":23},{"v":22},{"v":21},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 47, 25)"},{"v":22},{"v":23},{"v":21},{"v":23},{"v":21},{"v":22},{"v":21},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 47, 36)"},{"v":20},{"v":22},{"v":23},{"v":21},{"v":23},{"v":22},{"v":21},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 47, 46)"},{"v":22},{"v":21},{"v":23},{"v":21},{"v":23},{"v":21},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 47, 56)"},{"v":23},{"v":23},{"v":21},{"v":21},{"v":21},{"v":23},{"v":22},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 48, 7)"},{"v":23},{"v":20},{"v":22},{"v":23},{"v":22},{"v":22},{"v":23},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 48, 17)"},{"v":23},{"v":20},{"v":22},{"v":20},{"v":20},{"v":21},{"v":22},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 48, 28)"},{"v":23},{"v":22},{"v":22},{"v":21},{"v":23},{"v":20},{"v":23},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 48, 38)"},{"v":23},{"v":21},{"v":23},{"v":23},{"v":21},{"v":22},{"v":23},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 48, 48)"},{"v":21},{"v":21},{"v":21},{"v":21},{"v":21},{"v":23},{"v":23},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 48, 59)"},{"v":21},{"v":21},{"v":23},{"v":22},{"v":22},{"v":23},{"v":21},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 49, 9)"},{"v":21},{"v":22},{"v":23},{"v":20},{"v":20},{"v":23},{"v":20},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 49, 19)"},{"v":23},{"v":21},{"v":21},{"v":22},{"v":23},{"v":21},{"v":20},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 49, 30)"},{"v":23},{"v":23},{"v":22},{"v":21},{"v":20},{"v":21},{"v":23},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 49, 40)"},{"v":21},{"v":23},{"v":23},{"v":21},{"v":23},{"v":21},{"v":22},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 49, 50)"},{"v":22},{"v":22},{"v":20},{"v":23},{"v":22},{"v":21},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 50, 1)"},{"v":20},{"v":22},{"v":23},{"v":23},{"v":20},{"v":23},{"v":21},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 50, 11)"},{"v":23},{"v":20},{"v":21},{"v":23},{"v":23},{"v":21},{"v":21},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 50, 22)"},{"v":23},{"v":21},{"v":21},{"v":21},{"v":20},{"v":20},{"v":20},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 50, 32)"},{"v":23},{"v":20},{"v":20},{"v":22},{"v":22},{"v":21},{"v":23},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 50, 42)"},{"v":23},{"v":22},{"v":22},{"v":23},{"v":21},{"v":22},{"v":20},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 50, 53)"},{"v":21},{"v":21},{"v":22},{"v":23},{"v":23},{"v":20},{"v":23},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 51, 3)"},{"v":20},{"v":20},{"v":23},{"v":21},{"v":23},{"v":20},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 51, 13)"},{"v":22},{"v":21},{"v":23},{"v":22},{"v":20},{"v":22},{"v":23},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 51, 24)"},{"v":22},{"v":21},{"v":23},{"v":20},{"v":21},{"v":20},{"v":21},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 51, 34)"},{"v":23},{"v":20},{"v":23},{"v":22},{"v":22},{"v":22},{"v":23},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 51, 44)"},{"v":22},{"v":23},{"v":23},{"v":23},{"v":22},{"v":22},{"v":23},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 51, 55)"},{"v":22},{"v":23},{"v":22},{"v":21},{"v":21},{"v":23},{"v":22},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 52, 5)"},{"v":20},{"v":20},{"v":20},{"v":22},{"v":21},{"v":21},{"v":21},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 52, 15)"},{"v":22},{"v":22},{"v":21},{"v":21},{"v":21},{"v":23},{"v":22},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 52, 26)"},{"v":23},{"v":22},{"v":23},{"v":22},{"v":21},{"v":23},{"v":22},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 52, 36)"},{"v":20},{"v":22},{"v":23},{"v":21},{"v":23},{"v":23},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 52, 46)"},{"v":23},{"v":23},{"v":21},{"v":21},{"v":20},{"v":21},{"v":20},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 52, 57)"},{"v":21},{"v":20},{"v":21},{"v":23},{"v":20},{"v":23},{"v":21},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 53, 7)"},{"v":22},{"v":21},{"v":21},{"v":23},{"v":23},{"v":22},{"v":23},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 53, 17)"},{"v":22},{"v":21},{"v":20},{"v":20},{"v":21},{"v":22},{"v":23},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 53, 28)"},{"v":20},{"v":22},{"v":23},{"v":20},{"v":22},{"v":22},{"v":23},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 53, 38)"},{"v":21},{"v":23},{"v":23},{"v":20},{"v":22},{"v":23},{"v":20},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 53, 48)"},{"v":21},{"v":20},{"v":20},{"v":22},{"v":23},{"v":21},{"v":22},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 53, 59)"},{"v":22},{"v":21},{"v":23},{"v":21},{"v":22},{"v":20},{"v":22},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 54, 9)"},{"v":22},{"v":21},{"v":20},{"v":20},{"v":20},{"v":23},{"v":23},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 54, 19)"},{"v":21},{"v":21},{"v":23},{"v":22},{"v":21},{"v":22},{"v":20},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 54, 30)"},{"v":22},{"v":20},{"v":23},{"v":22},{"v":20},{"v":22},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 54, 40)"},{"v":23},{"v":21},{"v":22},{"v":20},{"v":23},{"v":20},{"v":23},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 54, 50)"},{"v":22},{"v":20},{"v":20},{"v":22},{"v":21},{"v":20},{"v":22},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 55, 1)"},{"v":22},{"v":22},{"v":21},{"v":21},{"v":21},{"v":22},{"v":21},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 55, 11)"},{"v":21},{"v":21},{"v":21},{"v":21},{"v":23},{"v":22},{"v":22},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 55, 21)"},{"v":21},{"v":23},{"v":21},{"v":20},{"v":22},{"v":23},{"v":23},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 55, 32)"},{"v":20},{"v":21},{"v":20},{"v":21},{"v":21},{"v":23},{"v":23},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 55, 43)"},{"v":21},{"v":20},{"v":20},{"v":22},{"v":22},{"v":20},{"v":21},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 55, 53)"},{"v":20},{"v":21},{"v":22},{"v":20},{"v":22},{"v":23},{"v":21},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 56, 4)"},{"v":23},{"v":22},{"v":20},{"v":21},{"v":21},{"v":23},{"v":21},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 56, 14)"},{"v":21},{"v":20},{"v":23},{"v":20},{"v":23},{"v":22},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 56, 24)"},{"v":22},{"v":20},{"v":22},{"v":22},{"v":20},{"v":23},{"v":20},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 56, 35)"},{"v":23},{"v":21},{"v":22},{"v":20},{"v":22},{"v":22},{"v":21},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 56, 45)"},{"v":21},{"v":22},{"v":21},{"v":21},{"v":20},{"v":21},{"v":21},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 56, 55)"},{"v":21},{"v":23},{"v":21},{"v":23},{"v":21},{"v":21},{"v":23},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 57, 6)"},{"v":23},{"v":21},{"v":20},{"v":21},{"v":22},{"v":23},{"v":21},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 57, 16)"},{"v":22},{"v":21},{"v":20},{"v":21},{"v":22},{"v":20},{"v":21},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 57, 26)"},{"v":23},{"v":23},{"v":20},{"v":23},{"v":22},{"v":23},{"v":20},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 57, 37)"},{"v":20},{"v":22},{"v":20},{"v":21},{"v":21},{"v":22},{"v":23},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 57, 47)"},{"v":21},{"v":21},{"v":22},{"v":22},{"v":21},{"v":21},{"v":21},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 57, 57)"},{"v":20},{"v":23},{"v":23},{"v":22},{"v":22},{"v":22},{"v":21},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 58, 7)"},{"v":20},{"v":22},{"v":23},{"v":21},{"v":20},{"v":23},{"v":20},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 58, 18)"},{"v":22},{"v":23},{"v":23},{"v":23},{"v":20},{"v":20},{"v":21},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 58, 28)"},{"v":22},{"v":20},{"v":20},{"v":20},{"v":22},{"v":20},{"v":23},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 58, 39)"},{"v":21},{"v":20},{"v":23},{"v":21},{"v":23},{"v":23},{"v":21},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 13, 58, 49)"},{"v":21},{"v":20},{"v":23},{"v":22},{"v":23},{"v":22},{"v":22},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 58, 59)"},{"v":22},{"v":21},{"v":21},{"v":23},{"v":20},{"v":21},{"v":22},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 59, 10)"},{"v":23},{"v":20},{"v":21},{"v":23},{"v":21},{"v":20},{"v":21},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 59, 20)"},{"v":23},{"v":22},{"v":21},{"v":22},{"v":20},{"v":22},{"v":23},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 13, 59, 30)"},{"v":21},{"v":20},{"v":21},{"v":20},{"v":20},{"v":20},{"v":22},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 13, 59, 40)"},{"v":23},{"v":22},{"v":22},{"v":21},{"v":23},{"v":22},{"v":23},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 13, 59, 51)"},{"v":22},{"v":20},{"v":22},{"v":21},{"v":23},{"v":21},{"v":22},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 14, 0, 1)"},{"v":20},{"v":21},{"v":20},{"v":20},{"v":23},{"v":23},{"v":23},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 14, 0, 11)"},{"v":21},{"v":22},{"v":23},{"v":22},{"v":23},{"v":22},{"v":23},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 14, 0, 22)"},{"v":20},{"v":20},{"v":21},{"v":21},{"v":21},{"v":23},{"v":20},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 14, 0, 33)"},{"v":22},{"v":23},{"v":20},{"v":20},{"v":21},{"v":22},{"v":22},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 14, 0, 43)"},{"v":20},{"v":23},{"v":21},{"v":20},{"v":20},{"v":21},{"v":21},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 14, 0, 54)"},{"v":23},{"v":23},{"v":23},{"v":22},{"v":20},{"v":23},{"v":21},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 14, 1, 4)"},{"v":20},{"v":23},{"v":21},{"v":20},{"v":23},{"v":20},{"v":20},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 14, 1, 14)"},{"v":23},{"v":20},{"v":23},{"v":21},{"v":22},{"v":21},{"v":20},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 14, 1, 24)"},{"v":22},{"v":21},{"v":23},{"v":22},{"v":20},{"v":20},{"v":20},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 14, 1, 35)"},{"v":23},{"v":22},{"v":22},{"v":23},{"v":21},{"v":23},{"v":22},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 14, 1, 45)"},{"v":21},{"v":20},{"v":21},{"v":20},{"v":22},{"v":23},{"v":22},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 14, 1, 55)"},{"v":22},{"v":23},{"v":20},{"v":22},{"v":20},{"v":23},{"v":23},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 14, 2, 6)"},{"v":23},{"v":22},{"v":21},{"v":20},{"v":23},{"v":20},{"v":22},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 14, 2, 16)"},{"v":21},{"v":20},{"v":21},{"v":21},{"v":21},{"v":22},{"v":20},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 14, 2, 27)"},{"v":20},{"v":21},{"v":20},{"v":21},{"v":20},{"v":21},{"v":22},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 14, 2, 37)"},{"v":21},{"v":21},{"v":23},{"v":21},{"v":22},{"v":22},{"v":21},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 14, 2, 47)"},{"v":22},{"v":20},{"v":22},{"v":20},{"v":20},{"v":20},{"v":20},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 14, 2, 58)"},{"v":21},{"v":20},{"v":22},{"v":21},{"v":22},{"v":21},{"v":22},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 14, 3, 8)"},{"v":21},{"v":22},{"v":23},{"v":22},{"v":20},{"v":22},{"v":21},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 14, 3, 18)"},{"v":21},{"v":22},{"v":20},{"v":20},{"v":21},{"v":20},{"v":20},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 14, 3, 29)"},{"v":23},{"v":22},{"v":20},{"v":22},{"v":22},{"v":21},{"v":21},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 14, 3, 39)"},{"v":21},{"v":21},{"v":23},{"v":23},{"v":21},{"v":22},{"v":23},{"v":23}]},{"c":[{"v":"Date(2017, 0, 11, 14, 3, 49)"},{"v":22},{"v":20},{"v":22},{"v":23},{"v":23},{"v":23},{"v":20},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 14, 4, 0)"},{"v":21},{"v":22},{"v":22},{"v":23},{"v":23},{"v":22},{"v":21},{"v":21}]},{"c":[{"v":"Date(2017, 0, 11, 14, 4, 10)"},{"v":23},{"v":22},{"v":23},{"v":22},{"v":23},{"v":21},{"v":23},{"v":20}]},{"c":[{"v":"Date(2017, 0, 11, 14, 4, 20)"},{"v":23},{"v":20},{"v":21},{"v":22},{"v":20},{"v":22},{"v":21},{"v":22}]},{"c":[{"v":"Date(2017, 0, 11, 14, 4, 31)"},{"v":20},{"v":23},{"v":20},{"v":20},{"v":22},{"v":23},{"v":21},{"v":21}]}]})
var chart = new google.visualization.ChartWrapper({
'chartType': 'LineChart',
'containerId': 'chart',
'options': {
// Use the same chart area width as the control for axis alignment.
'chartArea': {'height': '80%', 'width': '80%',interpolateNulls: true},hAxis: {
title: 'Datetime'
},
vAxis: {
title: 'Temperature (°C)',
minValue: 0
},
pointSize: 3,
}
// Convert the first column from 'date' to 'string'.
});
/* Change the format of the date column, used in chart, but not chart range filter */
dashboard.bind(control, chart);
dashboard.draw(data);
var columns = [];
var series = {};
for (var i = 0; i < data.getNumberOfColumns(); i++) {
columns.push(i);
if (i > 0) {
series[i - 1] = {};
}
}
google.visualization.events.addListener(chart, 'select', function () {
var sel = dashboard.getSelection();
// if selection length is 0, we deselected an element
if (sel.length > 0) {
// if row is undefined, we clicked on the legend
if (sel[0].row === null) {
var col = sel[0].column;
if (columns[col] == col) {
// hide the data series
columns[col] = {
label: data.getColumnLabel(col),
type: data.getColumnType(col),
calc: function () {
return null;
}
};
// grey out the legend entry
series[col - 1].color = '#CCCCCC';
}
else {
// show the data series
columns[col] = col;
series[col - 1].color = null;
}
// set series option
chart.setOption('series', series);
var view = new google.visualization.DataView(data);
view.setColumns(columns);
dashboard.bind(control, chart);
dashboard.draw(view);
}
}
});
}
<script src="https://www.gstatic.com/charts/loader.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<div id="dashboard">
<div id="chart" style='width: 100%; height: 450px;'></div>
<div id="control" style='width: 100%; height: 100px;'></div>
</div>
注意:加载库不需要jsapi
根据release notes ...
The version of Google Charts that remains available via the jsapi loader is no longer being updated consistently. Please use the new gstatic loader from now on.
只需使用...
<script src="https://www.gstatic.com/charts/loader.js"></script>
这将仅将load
语句更改为...
google.charts.load('current', {
callback: drawVisualization,
packages:['geochart']
});
(回调
也可以添加到load
语句中)
关于javascript - 通过单击图例隐藏线谷歌图表,图例不是灰色的,当所有线都隐藏时会遇到麻烦,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41594376/
我对 c# 有点陌生,我在尝试围绕这个 if-then 语句尝试实现时遇到了一些麻烦。 这是我的目标:当用户将订单输入系统时,将为每个订单创建一个唯一的 orderID。但是,一些附加功能是用户可以选
我已经搜索了这个特定的错误,发现根本问题涉及循环计数错误并导致程序超出数组的界限。 但是,当我将每个数组降低到数组开始丢失输出数据的程度后,它继续抛出相同的错误。我对 C/C++ 仍然是新手,但任何对
我不明白为什么我运行这个小程序时屏幕上没有任何显示? while 循环甚至开始了吗? #include #include int main() { char word[20]; char
我接手了一个用 Perl 编写的项目,它有一些依赖项,例如 Template::Toolkit , Image::ExifTool , 和 GD仅举几例。目前,这些依赖项使用 --prefix 构建到
我想对一个字段进行累积总和,但只要遇到 0 就重置聚合值。 这是我想要的一个例子: data.frame(campaign = letters[1:4] , date=c("jan","
不久前,该项目的 gradle 构建运行良好,但现在一直失败并显示以下错误(带有 --info 标志的输出): Starting process 'Gradle Test Executor 1'. W
我是编程新手,想用 Java 制作一个掷骰子程序来执行。代码如下: import java.math.*; public class Dices { public static int dice1=0
这个问题已经有答案了: What is a StringIndexOutOfBoundsException? How can I fix it? (1 个回答) 已关闭 5 年前。 我对 Java 完
这个方法一直抛出标题中的异常,我找不到原因,我已经通过连接创建了其他表,并且所有引用的表都已创建。我正在使用嵌入式JavaDB . private void createEvidenceTable()
我刚开始上课,这是我第三次尝试上课。我遇到了一个 NameError,我真的不知道如何解决。看看我的程序,看看你能不能帮忙。 import random import math import pyga
好吧,这是我的困境,我向 JFrame 添加了三个面板。第一个(不可见)第二个(可见)和第三个(不可见)..我使用第一个面板作为菜单,当您选择一个选项时,第一个面板被制作(可见),然后第三个面板被制作
我的部分代码遇到问题。如果我选择选项 A,它会运行并给我正确的答案,但是,如果我选择选项 S 或 M,它不会给我任何结果,只会去到它应该去的地方。已经尝试将 if 更改为 else if,但它显示“预
我这里有一些代码,但我正在努力解决它,因为我似乎无法掌握这个文件指针的东西。我对使用文件还很陌生。我见过类似的其他问题,并且尝试了对其他人有效的解决方案,但由于某种原因它们对我不起作用。这是出现问题的
我们有一个很大的应用程序,我们已经将 TODO 规则添加到质量门中,如果发现 TODO 注释,它会给出错误。如果我们只是删除 TODO 注释(这很可怕),它会起作用,但添加 TODO 注释的整个目的就
我正在尝试编写一个名为 isVowel 的函数,它接受一个字符(即长度为 1 的字符串)并在它是元音、大写或小写时返回“true”。如果该字符不是元音字母,该函数应返回“false”。 这看起来应该可
我一直在努力完成我正在做的这个小项目,但由于某种原因它无法正常工作。 问题是当我第一次访问该页面并单击出现在主要部分中的第一个链接时,它会根据需要显示弹出框。现在,当我点击另一天,例如星期天并尝试点击
我正在尝试制作一个 WPF 应用程序。我的窗口内有一个数据网格。我制作了另一个窗口,将新数据添加到我的数据网格中。虽然它按照我想要的方式工作,但我不断遇到异常。我的 MySQL 代码: using S
我试图在我似乎无法使 NSUserDefaults 正常工作的程序中保存几个首选项。如果有人可以查看我的代码并查看是否有任何错误,我们将不胜感激 NSString *kGameIsPaused = @
设置 SymmetricDS版本是3.9.1(也试过3.9.0) 设置是从 postgres 9.5.3 到 postgres 9.5.3 Windows 10 pc(客户端节点)到 Windows
经过长时间的努力,我终于(差不多)完成了我的java菜单程序。但是,我无法让我的返回更改功能在我的代码末尾工作。它给出了非常奇数的数字。有什么想法吗? 代码: import java.io.*; im
我是一名优秀的程序员,十分优秀!