charts

Add own watermark to flex chart

自作多情 提交于 2019-12-11 17:08:31
问题 does someone know how to add a watermark to a charting component in flex? Maybe to a Line Chart or just simple to a canvas. Thanks in advance Sebastian 回答1: Try making the background of the chart transparent (backgroundAlpha: 0), then wrap them both in a canvas, and put your watermark behind the chart <mx:Canvas><mx:Image/><mx:Chart/></mx:Canvas> 回答2: You can manipulate backgroundElements of your chart, for example <fx:Declarations> <fx:Array id="backgroundContents"> <mx:Image source="..

Change color of the supportive lines in LineChart MPAndroidChart

浪尽此生 提交于 2019-12-11 17:02:03
问题 I have a LineChart, and when I touch at some point, there appear two lines. How to change the color of that lines? or how to disable them? By supportive lines I mean that orange lines. 回答1: Try LineDataSet.setHighLightColor(//your color) method 来源: https://stackoverflow.com/questions/45650691/change-color-of-the-supportive-lines-in-linechart-mpandroidchart

ChartRangeFilter as a zoom function for a google timeline charts that reads data from a dedicated google spreadsheet with dataview

删除回忆录丶 提交于 2019-12-11 16:55:50
问题 I am working on a rather comprehensive timeline that reads data from a dedicated google spreadsheet using dataview. It does work // Load the Visualization API and the corechart package. google.charts.load("current", {packages:["timeline"]}); // Set a callback to run when the Google Visualization API is loaded. google.charts.setOnLoadCallback(drawGID); function drawGID() { var query = new google.visualization.Query( 'https://docs.google.com/spreadsheets/d

Highstock - Single line series-Dynamically create marker based on a trigger

╄→尐↘猪︶ㄣ 提交于 2019-12-11 16:52:26
问题 I am using Highstock - Single line series for plotting data.http://www.highcharts.com/stock/demo/basic-line. I want to know how to create marker on certain points based on a trigger.If a sudden increase happens in y axis,i want create a marker on that point(ie sudden increase happend from 460 to 470,i want to create a marker on 470).I want to do it in client level.How can i do this.Can anyone help on this.Ataching screenshot,what ideally i need.I want to create marker on highlighted red

VBA Chart setsourcedata

心不动则不痛 提交于 2019-12-11 16:49:12
问题 I have to write a VBA script to define Data Source for a chart, but I am not a VBA programmer. In my workbook, I have many sheets and many sheets have many charts. In my VBA I have to define data source for every chart. For this, I want to know whether I can write in my module the below statement: <sheet-name>.<chart-name>.SetSourceData Source ='CPU_UTIL'!$A$1:$A$31,'CPU_UTIL'!$N$1:$O$31 Whether this syntax is correct and can I use it directly? 回答1: First of all, I am a little hesitant to

Fill and Border color property of data point marker (scatter or line) Excel VBA

≡放荡痞女 提交于 2019-12-11 16:48:13
问题 I am writing some code to loop through each data point in a chart and change the color (fill/border) of the point marker if it is the wrong color. I don't want it to change if it is a compliant color (using a select case). Problem: Checking markerbackgroundcolor and markerforegroundcolor returns "-1" no matter what the color is until i manually change the color (right click marker and change fill from automatic to solid).Something to do with Automatic colors. Basic example in immediate window

GOOGLE CHARTS using implement line charts as dynamic array objects loops

北慕城南 提交于 2019-12-11 16:22:19
问题 array objects look like this i get data from group by product name date and cost in ruby and store in one varible ... first array is a name of product and second array data is date and cost. how to combine and show on x as date and y-axis as cost with a product name how to implement in charts like I have no idea about how to iterate loop in javascript for an array of array data and show in x and y axis using arraydatatable or data table its working fine with highcharts if i pass direct data

vega horizontal bar charts

↘锁芯ラ 提交于 2019-12-11 16:22:07
问题 The vega documentation/tutorials suggest that setting up a horizontal bar chart is easy, but I can't figure it out for the life of me. How would I go about changing a vertical bar chart, such as http://vega.github.io/vega-editor/index.html?spec=bar, to a horizontal one? 回答1: Like this { "width": 200, "height": 210, "padding": "auto", "data": [ { "name": "raw", "values": [ {"x": "A","y": 28}, {"x": "B","y": 55}, {"x": "C","y": 43}, {"x": "D","y": 91}, {"x": "E","y": 81}, {"x": "F","y": 53}, {

Python Pygal chart pulling data from database not matching values to labels

六眼飞鱼酱① 提交于 2019-12-11 16:18:35
问题 I am working on my first project and I am using Pygal to visualize some data from a database. I am using the latest version of Python (3.6.5), Flask, Pygal and my IDE is Pycharm The project is a simple budget application in which one enters the planned budget for a monthly expenditure and then the actual amounts for that expense/item (e.g. monthly car expenses, like gas). I use Pygal to show 2 bar charts. The first one (which works as intended) shows a total planned amounts vs total actual

how to save svg image as pdf and png?

旧城冷巷雨未停 提交于 2019-12-11 16:18:21
问题 i have used google chart library for drawing the different google charts.And after draw the chart i have downloaded the svg file as pdf and png. but in word tree chart scenario i cannot downloaded the pdf and png formate. Here is the link for chart: Word Tree chart drawCanvas = function (dataURI) { $(".download-buttons").css({ 'visibility': 'visible' }); // imageURI = dataURI; var img = new Image(); img.src = dataURI; img.onload = function () { var canvas = document.getElementById("canvas");