Skip to main content

All Questions

Tagged with
1 vote
1 answer
71 views

How to coustomise the Y-axis grid line css properties in c3js

I have created a line chart with time series data. I used custom X-axis grid lines and increased their spacing by editing their CSS. I would like to increase the spacing between the grid lines on the ...
Akhil S Babu's user avatar
0 votes
1 answer
94 views

c3js timeseries chart interval colors

I'm starting with the c3.js library and I want to make a time chart (timeseries) and color-code the values based on some intervals. I receive the data from a json after making a query in PHP. I make ...
user68481's user avatar
1 vote
0 answers
56 views

How can I hide bars with null values in C3.js?

I have a C3 chart with data as given in columns. Notice that there are null values in data1 and in between data 3. C3 is trying to display my bar chart in groupings of 5, creating a separate bar for ...
Yash Koolwal's user avatar
1 vote
0 answers
50 views

How to fix this phenomenon on my c3 line chart? missing dashed line

Missing dashed line I can't get correctly dash line in my c3 chart when I use regions option. please, let me know how can I fix this phenomenon. I couldn't get any information from anywhere about this ...
SungW's user avatar
  • 11
1 vote
1 answer
709 views

C3JS Uncaught TypeError: Cannot read properties of undefined (reading 'getItem')

I know that there is full of question about this problem, but I have this strange scenario where: Initially I have one C3JS pie chart, where on click needs to generate another C3JS bar chart. Until ...
makaMa's user avatar
  • 11
0 votes
1 answer
224 views

C3.js - axis X time format locale

I am new at C3.js, and I am trying to do a timeseries chart. My goal is to set Portuguese Brazil as the default locale. I already saw that d3.js has an implementation that change the time format. But ...
larari's user avatar
  • 7
2 votes
1 answer
222 views

C3.js horizontal bar chart - Highlight a specific x-axis tick together with bar

I've created a very simple horizontal bar chart with C3.js that is listing data from my SQL database. The chart is accessible on it's own without any filter, but also by passing data from a previously ...
KrisV's user avatar
  • 33
4 votes
2 answers
3k views

Uncaught TypeError: this.d3.set is not a function

Following the example on https://c3js.org/gettingstarted.html I ran into above mentioned error. I have set up php -S localhost:8000. Then I open this .html file: <!DOCTYPE html> <html lang=&...
schmark's user avatar
  • 53
1 vote
1 answer
373 views

c3.js - How to manually trigger the hover of a donut arc?

I'm using c3.js and have a donut chart that has custom text inside the donut as you hover over each category. I got that all working great. I have some custom elements relating to the chart but are ...
Chief's user avatar
  • 127
0 votes
0 answers
104 views

timeseries via json in c3 line chart

I use d3/c3 library to create a chart with two lines representing timeseries: yr0 and yr0 on the y-axis, x is the x-axis data. The lines are fed by a Json feed which I generate in PHP. However the ...
Mark Henry's user avatar
  • 2,679
0 votes
1 answer
90 views

Can't get c3.js right click event arguments

I'd like to control right click event on c3.js graphs. I found a solution Right mouse click detection on SVG shape in JavaScript not working, but I can't get data and index arguments. Is there any ...
bmb2020's user avatar
0 votes
2 answers
417 views

tooltip on category axis in c3.js chart?

I have a rotated bar chart, where I want to show categories on the x-axis. But big texts are being clustered in the axis. I wanted to truncate the text and show a tooltip instead. Here is the chart ...
Shubham's user avatar
  • 177
0 votes
1 answer
64 views

Can't animate a C3 chart with different datasets using scrollytelling (Scrolltop)

I've created a C3.js bar chart that I'm trying to animate as it scrolls down an HTML page. Essentially, I want it to change data sets as it gets to a certain point in the page. This is my the script I'...
xrichervis's user avatar
0 votes
1 answer
90 views

multiple charts with thresholds can be displayed in a for c3.js loop

I try to show 7 graphs with thresholds, look at the example and I have tried to implement it but it only applies to the first element, if there is a possibility that it can be done: for(var i=0; i<...
Eder Esparza's user avatar
0 votes
1 answer
346 views

c3 js pie chart from csv

I'm trying to display a pie chart using C3.js loading data from a CSV. I'm able to get the chart to display my data when it's manually input. But I can't figure out how to get the chart to load ...
kamalo's user avatar
  • 186

15 30 50 per page
1
2 3 4 5
37