charts

Time axis in d3.js with specific time zone

余生长醉 提交于 2019-12-12 14:15:37
问题 I am using d3.time.scale() (reference here) to create time scale and providing tick values using axis.tickValues([values]) (here). The ticks are rendered for the specified Date objects provided in [values]. All fine, but the tick values representations are always in current time zone of the browser. Now comes the requirement to show it in a specific time zone (say, 'Asia/Calcutta'). Is there a way to achieve this? The max option I see is for formatting the ticks, but not replacing them with

How do I implement zingchart into angular2

≡放荡痞女 提交于 2019-12-12 13:55:26
问题 I have an existing project that I want to implement zingcharts on. I have tried 3 different tutorials mainly from " https://blog.zingchart.com/2016/07/19/zingchart-and-angular-2-charts-back-at-it-again/ "blog. However I can not get that working in my project. So I decided I will try and implement it the most basic way first and later on try better ways. This is what I did but it does not shop up yet. Being new to angular2 I am not quite sure if this will work. I went to the ZingChart website

Google charts - animation of stepped chart

淺唱寂寞╮ 提交于 2019-12-12 13:44:32
问题 I have this problem with animating of 2-datasets Stepped graph in Google Charts. It all worked well when it was just a LineChart, but my client would love to have SteppedArea chart. When I change the type from LineChart to SteppedAreaChart, the animation of the first dataset is OK, but the second dataset is somewhat wrong and I cannot figure out why. Can you please take a look at this code pen? Thank you very much function drawStepChart() { var data1 = new google.visualization.DataTable();

generate excel with chart from .NET

最后都变了- 提交于 2019-12-12 13:12:18
问题 I have a WPF application and I need to generate an excel file that also contains charts? What is the best way of doing that? If possible, I want to avoid using the excel interop. Thx, L 回答1: Look at this http://epplus.codeplex.com/wikipage?title=StatisticsSheetExample 回答2: I just found http://epplus.codeplex.com. Think I'm going to give it a try, it supports charts. 回答3: OfficeWriter is another mature .NET library for Excel that supports adding charts: http://www.officewriter.com 来源: https:/

Change the appearance of the title of a Core Plot pie chart

久未见 提交于 2019-12-12 12:35:41
问题 I would like to use a plain black background to my pie chart which I generate using Core Plot. I have the chart rendering nicely but the title is in a default blackColor which is hard to see on a black background. I know it's displaying because when I change the theme I can see it in black. Can anyone tell me how to change the text colour as I did with the data labels? Here is a snippet of my code... graph = [[CPTXYGraph alloc] initWithFrame:self.view.bounds]; CPTGraphHostingView *hostingView

c# chart vertical text annotation

不问归期 提交于 2019-12-12 12:15:30
问题 I'm adding annotations to a c# line chart. I'd like to change the text orientation but can't see any setting to allow this. RectangleAnnotationannotation = new RectangleAnnotation(); annotation.AnchorDataPoint = chart1.Series[0].Points[x]; annotation.Text = "look an annotation"; annotation.ForeColor = Color.Black; annotation.Font = new Font("Arial", 12); ; annotation.LineWidth = 2; chart1.Annotations.Add(annotation); The annotation is added to the graph correctly and the rectangle and text

Can I render multiple charts by single renderfunction call in ZingChart?

被刻印的时光 ゝ 提交于 2019-12-12 12:12:24
问题 I visited ZingChart's documentation and came to know the methods of rendering multiple charts by calling multiple render functions like this. zingchart.render({ id:'chartDiv1', data:myChart1, height:300, width:500 }); zingchart.render({ id:'chartDiv2', data:myChart2, height:300, width:500 }); zingchart.render({ id:'chartDiv3', data:myChart3, height:300, width:500 }); zingchart.render({ id:'dashboardDiv', data:myDashboard, height:500, width:700 }); But in my code I want to write less code

How may I get the image of DataVisualization.Charting.Chart to iTextSharp.text.Image without writing to a file?

纵然是瞬间 提交于 2019-12-12 11:34:22
问题 I'm writing a piece of software for visualization of measurement data. For this I use System.Windows.Forms.DataVisualization.Charting.Chart and I do know that I can get the shown image by chartObj.SaveImage to store it to a file. My software shall have a PDF export in which the picture should be included. For this, I'm using iTextSharp. Again, I do know how to put a picture which I have stored in a file into the PDF by iTextSharp.text.Image.GetInstance. So by now I am able to take the picture

Place the modeBar at top center using plotly.js

给你一囗甜甜゛ 提交于 2019-12-12 11:29:18
问题 I am using plotly.js to plot graph in my web app. The modeBar is placed at top right corner by default. Is there any way I can place it at the top center? 回答1: This should work: .js-plotly-plot .plotly .modebar { left: 50%; transform: translateX(-50%); } 回答2: .js-plotly-plot .plotly .modebar{left: 40%} 来源: https://stackoverflow.com/questions/45173726/place-the-modebar-at-top-center-using-plotly-js

ASP.NET Charting Control Transparency

亡梦爱人 提交于 2019-12-12 10:57:17
问题 I'm working with the ASP.NET Charting Library and I've got it generating a pie chart but I'm having a problem configuring it to generate the pie chart with semi-transparent slices. If you look at the image you'll see what I'm talking about. Of the 4 pie charts the top 2 and the bottom left chart have the pie slice transparency I'm talking about. (source: scottgu.com) What settings of the chart do I tweak to render the slices with a certain % of transparency? Thanks! 回答1: Try assigning the