charts

Change Chart JS Bar Chart Border to Dotted Line

为君一笑 提交于 2019-12-12 03:33:25
问题 I'm using Chart JS to build out a live dashboard. I was curious if there is a way to change the border of a bar chart to be dashed or dotted? I've looked through the documentation on http://www.chartjs.org/docs/ but I could only find a mention of dashed lines for Line Plots such as borderDash(). This doesn't seem to apply to bar chart borders. I would like a dashed border on the bar such as in the left bar chart in this image: enter image description here The dummy code that produces the plot

How to make color the wick portion of a candlestick stick using matplotlib?

流过昼夜 提交于 2019-12-12 03:33:24
问题 I'm looking to make the wick portion of a candlestick stick black using matplotlib? I couldn't find any mention of it in the documentation, but I've seen pictoral examples showing that it can be done. here's what I currently have: here's an example of the wicks being colored black: Update: I used the solution provided below but changed the code slightly to remove the vertical line over the body area of the candlestick: from matplotlib.lines import Line2D from matplotlib.patches import

Chart.js pie chart slice data is disappearing when mouse over for tooltips

邮差的信 提交于 2019-12-12 03:32:34
问题 Pie chart is implemented using Chart.js in my php page. I wish to display pie slice with data value and also tooltip when mouse over the slice. I came up with the following code. printf( '<table>' ); echo '<tr><td style="text-align: right;"><canvas id="pie-canvas-' . $canvasId . '" width=256px height=257px ></canvas></td><td style="text-align: left;width:360px;" id="legend" class="chart-legend"></td></tr>'; echo '<script type="text/javascript">drawPie(' . $canvasId . ', ' . $data .', ' .

Gantt Chart react-d3

青春壹個敷衍的年華 提交于 2019-12-12 03:28:46
问题 This question is related to Gantt chart with D3 I see that a pretty close implementation is available for AngularJS at https://www.angular-gantt.com/demo/ Is there an equivalent in React? I've checked http://www.reactd3.org/ and https://github.com/FormidableLabs/victory but there is nothing at the moment that seamlessly has the Gantt features. What would the best way be to go about this with React. The collapsible rows and the brush are the attractive features in the Angular Gantt. This -

How to show unique dates when outputting data to charts in php

人走茶凉 提交于 2019-12-12 03:21:37
问题 Based on a answer I got earlier from @WhiteHat (Thank you) I cannot seem to get the dates to show unique so I made this a new question as its an extension question.. I have a DB that has 3 columns - date, visits, sold.. Visit values are strings yes or no as well as sold = yes or no..I would like to display how many leads and sold for each day of the month. The db has a new row for each lead and sold so there are multiple dates that are duplicated for each lead and sold. It throws this error -

Razor - second chart will not display at all

安稳与你 提交于 2019-12-12 03:19:13
问题 I have a project using the basic ASP.Net MVC framework in VS 2015. I have 2 charts on a page, and the second chart does not display at all. The partial page conatining 2 charts: @model KPITest.Models.HotscaleMainKpi <div> @{ Chart _hotscaleLarge = new Chart(width: 600, height: 400, theme: ChartTheme.Green); _hotscaleLarge.AddTitle("Hot Scale Production"); _hotscaleLarge.AddSeries("Default", xValue: new[]{DateTime.Now}, xField: "Date", yValues: new[]{Model.TotalHotscale}, yFields: "Processed")

Highcharts pie chart - offset a single slice on legend click

陌路散爱 提交于 2019-12-12 03:19:08
问题 I've been searching through the API docs and lots of examples, but can't seem to find what I want. I have a pie chart with a legend. When you click a slice, it becomes offset (this is great). I would like this behaviour when you click on a legend item. Is it possible to achieve an offset slice via legend click? So if you click on an item in the legend, the relevant slice becomes offset. It seems that the method to use is legendItemClick, eg: options: { chart: { type: 'pie' }, plotOptions: { /

Graph Plotting Issue

杀马特。学长 韩版系。学妹 提交于 2019-12-12 03:17:12
问题 I am creating line graph using outputs from a thread, the threads are simulations of incoming and outgoing bill that run over a course of 52 seconds and this will be dipicted on a line graph as shown below to show the bank balance over the 52 seconds! Currently the program runs fine, when I click start the point gets updated but every a new point is placed on the graph the previous one disappears. How i can i keep all the points on the graph. I would assume i would have to create 2 new int

How to show dates in a chart in Excel?

谁说胖子不能爱 提交于 2019-12-12 03:09:14
问题 My date data in x axis is in this format: 11/15 (without year). How to show dates in a chart from 15Nov to 29Apr in Excel? Below chart is not correct. The first dates have moved to end. 回答1: I converted dates to text using: =TEXT(B2,"mm/dd") for all of rows. 回答2: Excel will add a default year (current year) for you when you enter just the month and day. so 15-Nov is actually 15-Nov-2017, and 29-Apr will also be 29-Apr-2017. So the 29-Apr will be assumed sooner than 15-Nov. I know you want 15

How do I combine two sheets into a single pivot table when they have no unique common attribute?

北城余情 提交于 2019-12-12 03:07:25
问题 I am doing a big conversion of database objects from T-SQL to PL/SQL (i.e. Microsoft to Oracle). I've two sheets tracking them. One is for existing procedures that are being converted and the other is for new ones that I've had to create. They both have the following columns: Object Name Object Type -- other details inc lines of code etc Conversion Status Phase of move What I want to do is create a chart where I can effectively group both sets of data together, with a slicer to choose which