Questions tagged [x-axis]

For questions related to the formatting of the x-axis in a plot

332 questions
0
votes
0 answers

ggplot2 visualization - How to tidy an x-axis with a lot of timestamps?

I visualized my data with a ggplot2-code. It worked really well, my only issue is the x-axis. R named all the dates, which lead to a chaotic state of the x-axis. enter image description here ggplot(Oct_Apr)+   aes(x=date, y=ctr, group=1) +  …
0
votes
0 answers

How to split x-axis label names in a base R barplot from a dataframe exported from excel

I have an excel document which looks like the one below: When I created a barplot using the base R barplot function the x-axis labels did not fit in one line since the labels were long. example <-…
NosiMsomi
  • 37
  • 4
0
votes
0 answers

How to show all dates in matplotlib from excel import?

I have a code in python 3.11 for a contour plot generating from an excel table using matplotlib. The result shows only first days of months on the x axis (for example 1.6.2022, 1.7.2022 ...). I want all days from the excel source table. Her's the…
Dušan K.
  • 1
  • 2
0
votes
1 answer

Highcharts Stock Chart - Custom X axis date times format

I'm wondering if it's possible to define a custom ordering or format for the xAxis in stock highcharts. My dataset has a date time which would be used for the xAxis however my client has specified that it should show in the middle T-0 on the xAxis.…
Anna
  • 1
  • 1
0
votes
0 answers

JS-echart-histpgram-X axis

blue is the standard, the red is current mine compared with these two diagrams, I do not no how to design the x-axis in the blue diagram, which is a range to describe the data. Now, I using an array to store all value displayed, and on the y-axis,…
0
votes
0 answers

Configure a second x-axis with matplotlib in logscale

I am trying to do a plot with a second x-axis on matplotlib but with a logarithmic scale. I managed to add a second x-axis on a plot with a linear scale using the example below: import numpy as np import matplotlib.pyplot as plt x_axis = …
Rhecsu
  • 109
  • 9
0
votes
0 answers

Is it possible that we can add dynamic borders to X axis labels and sub labels in chart.js?

I need to create dynamic borders to labels and sub labels of chart.js graph. Is there any way of achieving this scenario?. Below is the output I am expecting. Labels and sub labels are having borders Has anyone been able to achieve this with the…
VivekNair
  • 1
  • 1
0
votes
1 answer

ggplot with panel data using a continuous x-axis

I'd like to make a graph of panel data. I included the paneldata with a dput(). The issue I'm running into is as follows. I'd like each single date be displayed on the x-axis with a ggplot instead of estimates as it regularly does. Hence I use: …
0
votes
1 answer

I'm having making an animated line chart, problems with the X axis

I'm trying to animate a plot I have where the X axis is non-numeric. The plot itself looks great, but I get a few error messages trying to animate it using the transition_reveal function. I've got a data set called df100m that tracks the…
0
votes
1 answer

Monthly Date on X-Axis in Wavelet Analysis

I am performing Wavelet Analysis using biwavelet package in R. The date variable does not have continuous dates but with gaps. The data is monthly data. I tried two formats of data, the monthly date format from stata, and the normal date function…
Ahmed Arif
  • 189
  • 1
  • 2
  • 10
0
votes
0 answers

Scale x-axis in Grafana to show the seconds tick

I am new to Grafana and using a PostgreSQL data source for getting data and plotting the graph using the query results. I am trying to plot a time series graph where my data points present in the database varies every 10 seconds Currently, in…
Kamal
  • 453
  • 1
  • 10
  • 22
0
votes
2 answers

Change xAxis format in highcharts using R

I´m trying to change the xAxis format. I have two data tables with values per month. These are my tables: data <- structure(list(DATA = c("2022/09", "2022/10", "2022/11"), AUM = c(31057073.67, …
0
votes
0 answers

heatmap.2 change color key value / how to use key.xtickfun()

I am trying to customize the color key of my heaatmap. I was able to correct the position and the size of it (yay), but i am at a loss on how to change the values that are shown. The color key shows something called "colum Z scale", some default…
0
votes
1 answer

sorting of character variable on x axis of ggplot in R

I am using ggplot for plotting the Systolic blood pressures on y axis for 7 patients present in my data. My x axis is the combination of name of the visit and the timepoint both pasted with the help of 'H'. For eg. C1D1PRE H7 meaning hour 7 of C1D1…
0
votes
0 answers

Looking for d3.js Example of Re-aggregation For Dynamic Date Grain

I am trying to re-use this Bostock's d3 code example of a negative stacked bar chart: https://bl.ocks.org/mbostock/b5935342c6d21928111928401e2c8608 . Using my own data source, I want alter this code to have a date grain toggle to alternate between…
ouonomos
  • 700
  • 1
  • 9
  • 25