Code Monkey home page Code Monkey logo

Comments (8)

CityC avatar CityC commented on May 17, 2024 3

Would be nice to have the font size as a property for axes objects.

from c3.

d3netxer avatar d3netxer commented on May 17, 2024 1

I modified the font of my x-axis with this css tag:

.c3 svg g g.c3-axis.c3-axis-x {
font: 20px sans-serif;
}

from c3.

masayuki0812 avatar masayuki0812 commented on May 17, 2024

Hello,

For X axis, you can use axis.x.categories option to change text for each category.
I updated the sample, so please check this: http://c3js.org/samples/categorized.html

For Y axis, you can use axis.y.tick.format option to format value displayed as tick text.
I added a sample for this option, so please check this: http://c3js.org/samples/axes_y_tick_format.html

Thank you for using this library :)

from c3.

unicron avatar unicron commented on May 17, 2024

Great, thanks!

from c3.

ntquyen avatar ntquyen commented on May 17, 2024

One more question: how do I increase font-size of the labels?

from c3.

masayuki0812 avatar masayuki0812 commented on May 17, 2024

@ntquyen Please use c3-text class to specify css style.

from c3.

c5236786 avatar c5236786 commented on May 17, 2024

if i only want to increase font size of bar chart? what would be the class?

from c3.

craigg75 avatar craigg75 commented on May 17, 2024

I modified the font of my x-axis with this css tag:

.c3 svg g g.c3-axis.c3-axis-x {
font: 20px sans-serif;
}

This modifies the tick fonts too :(

from c3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.