charts

Setting color for bar chart in ng2-chart

蹲街弑〆低调 提交于 2019-12-13 04:01:21
问题 I am trying to set colors for bars in bar graph according to the range of values. TS public barChartData: any[]; public chartColors: any[]; value = [] // This array have my values from DB like [3.5, 2.5, 1.5, 6.5, 6, 1, 6.5, 3.5, 5.5] this.barChartData = [{ data: this.value, label: 'Insulin' }] var l = this.value.length; for (var i = 0; i < l; i++) { if (this.value[i] <= 3) { this.chartColors = [{ backgroundColor: 'rgba(255, 205, 86, 9)', borderColor: 'rgba(255, 205, 86, 9)' }] } else if

Pie Chart entries outside slices have different position offsets

懵懂的女人 提交于 2019-12-13 03:58:02
问题 The Charts library I'm using: Daniel Gindi - Charts If you look at the above image, the position offset of entries outside each slice are variable both in distance from the slice as well as in alignment. What I want: Align the entry text to be at the center outside the slice. [Look at 1 & 3] Keep all the slice texts equidistant from the slice. [Look at 3 & 6] What I tried so far: I tried to play with valueLinePart1Length and valueLinePart2Length , but this just helped a little, didn't solve

MS Access chart not recognizing decimal seperator

雨燕双飞 提交于 2019-12-13 03:55:05
问题 I have the following table and chart. The decimal . is not recognized, but why? What am I doing wrong? (Look at the Y scale in the chart) And this is a problem because some values has 3 digits ans some has 4. And it is generated with the round function Round(Number,3) ... Is this a rookie mistake? Best regards, Emil. 来源: https://stackoverflow.com/questions/27861530/ms-access-chart-not-recognizing-decimal-seperator

'Chart.js' time chart not displaying properly

戏子无情 提交于 2019-12-13 03:49:58
问题 So I'm trying to create a simple chart using chart.js. The chart consists of price values for the y-axis and time values for the x-axis. The data is fetched from an API. The y-axis value are displayed properly, but for the x-values they appear condensed. These are the options I'm passing into the chart: options: { title: { display: false }, legend: { display: false }, scales: { xAxes: [{ type: 'time', ticks: { source: 'data', autoSkip: true, autoSkipPadding: 50 }, time: { parser: 'HH:mm',

VBA Excel Chart SeriesCollection

限于喜欢 提交于 2019-12-13 03:48:09
问题 I'm struggling for the last couple of hours with an error. I want to make a code that plots the same range for each sheet. When I add a series collection it fails. I have modified the code from a recorded macro, which works perfectly. This is the code in question: Sub plot() Dim wb As Excel.Workbook Set wb = ThisWorkbook Dim ws As Worksheet Dim name As String Dim plot As Excel.Shape For Each ws In wb.Worksheets name = ws.name Set plot = ws.Shapes.AddChart plot.Chart.ChartType =

Flex: Inverting LinearAxis values

China☆狼群 提交于 2019-12-13 03:47:39
问题 I have a line chart that is updated every so and so seconds, similar to the one you see in Windows' Task Manager. The chart goes right-to-left, with the most recent data on the right, and going leftwards. How would I invert the values of the X axis so that the lowest value is on the right and the highest on the left? It's a LinearAxis. I tried making it a CategoryAxis and putting the numbers in manually, but that doesn't work the way it should (the labels are not aligned with the ticks). Or,

Line chart doesn't show in Object Page - Vizframe - SAPUI5

独自空忆成欢 提交于 2019-12-13 03:37:36
问题 I am trying to make a line chart using Vizframe in an Object Page . Does anybody have an example how to do it? I searched the APIs and the sdn but find just samples with Layout element and not Object Page Layout element. So when I test it within a simple Layout element (< layout > element) the line charts works fine. But when I try it with Object Page Layout elementt, the chart doesn't show and there is no errors in the console. Thanks a lot, Haylee N. I joined the two different views here:

How to use sparse arrays with C3 charts?

你说的曾经没有我的故事 提交于 2019-12-13 03:37:17
问题 For graphing in C3, we can give it column data, which is an array of arrays with each array being a different line on the chart like in this C3 docs example. But is there a way to have that column data sparse? I'm getting an error when I try that, although I'm not sure if there's a workaround I don't know about. If not, is there a better way to convert between sparse and dense arrays than a filter function like what I have? https://jsfiddle.net/dbkidd/majx8byn/ var columnData = [] var entry1

Google Pie Chart not displaying correctly on view page in Asp.Net MVC

↘锁芯ラ 提交于 2019-12-13 03:36:52
问题 I seem to have a problem with displaying my Google Pie Chart on my view page . It doesn't seem to display the data in the Pie Chart correctly and I'm not entirely sure why, I tried changing around the code for my dataColumn , but it ends up not displaying anything at all. So I reverted back... The query does work, the correct data is being pulled from the database. I'm still fairly new to reports so if anyone can please suggest a solution I'll greatly appreciate it! I've done everything in

html2canvas Chart.js chart not rendered

无人久伴 提交于 2019-12-13 03:30:26
问题 I am trying to export a div that contains a Chart.js chart as an Iamge. All elements are displayed perfectly fine, however, the Chart.js canvas just doesn't get rendered. I am calling my export function in the callback of the onAnimationComplete option in my chart, so the export can't happen before the chart is fully built. Here is how my html2canvas and download functions look: download() { this.dl.download = this.fileName; this.dl.click(); } loadDataUrl($node) { this.hideUnwantedElements();