Font Awesome Chart Line Icon - Graph

The Font Awesome Chart Line icon is used to indicate a graph. It is available in 2 versions, namely fas fa-chart-line for version 5 and fa-solid fa-chart-line for version 6.


Fontawesome Version 5.X

chart line

<i class='fas fa-chart-line'></i>

chart line

<i class='fas fa-chart-line' style='color: white'></i>

chart line

<i class='fas fa-chart-line' style='color: red'></i>

chart line

<i class='fas fa-chart-line' style='color: blue'></i>

chart line

<i class='fas fa-chart-line' style='color: #f3da35'></i>
Try it Yourself

Fontawesome Version 6.X

chart line

Web

<i class='fa-solid fa-chart-line'></i>

React

<FontAwesomeIcon icon="fa-solid fa-chart-line" />

Vue

<font-awesome-icon icon="fa-solid fa-chart-line" />

chart line

Web

<i class='fa-solid fa-chart-line' style='color: white'></i>

React

<FontAwesomeIcon icon="fa-solid fa-chart-line" style={{color: 'white'}} />

Vue

<font-awesome-icon icon="fa-solid fa-chart-line" :style="{color: 'white'}" />

chart line

Web

<i class='fa-solid fa-chart-line' style='color: red'></i>

React

<FontAwesomeIcon icon="fa-solid fa-chart-line" style={{color: 'red'}} />

Vue

<font-awesome-icon icon="fa-solid fa-chart-line" :style="{color: 'red'}" />

chart line

Web

<i class='fa-solid fa-chart-line' style='color: blue'></i>

React

<FontAwesomeIcon icon="fa-solid fa-chart-line" style={{color: 'blue'}} />

Vue

<font-awesome-icon icon="fa-solid fa-chart-line" :style="{color: 'blue'}" />

chart line

Web

<i class='fa-solid fa-chart-line' style='color: #f3da35'></i>

React

<FontAwesomeIcon icon="fa-solid fa-chart-line" style={{color: '#f3da35'}} />

Vue

<font-awesome-icon icon="fa-solid fa-chart-line" :style="{color: '#f3da35'}" />
Try it Yourself

How to add Font Awesome chart line Icon ?

Font Awesome Icon fas fa chart line Icon can be added to any web page simply as below. You can integrate Icon in web pages by just adding following below syntax & icon code.

Icon -
<i class='fas fa-chart-line'></i>
Icon Code -
fas fa-chart-line

HTML Code

Get complete html code for icon chart line

                    
                    <!DOCTYPE html>
                    <html>
                        <head>
                        <title>Page Title</title>
                        <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
                       </head>
                        <body>
                        <i class='fas fa-chart-line'></i>
                        </body>
                    </html>                    

Tags

graph,straight line,segment,horizontal,vertical

Change Font Awesome Icon Chart line Color

Sometimes we need icons in different color, as we suggested by adding css style we can change color. Here we have created one example to change color of icons with css classes.


    <style>
.blue-color {
color:blue;
}
.green-color {
color:green;
}
.teal-color {
color:teal;
}
.yellow-color {
color:yellow;
}
.red-color {
color:red;
}
</style>
<i class='fas fa-chart-line blue-color'></i> <i class='fas fa-chart-line green-color'></i> <i class='fas fa-chart-line teal-color'></i> <i class='fas fa-chart-line yellow-color'></i> <i class='fas fa-chart-line red-color'></i>

Output of the above example will be as below-


Note- Make Sure You have included the below Font Awesome file in header-
            
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">            
            
Related Icons

Chart Line Icon Font Awesome - FAQs

⭐What is the Font Awesome Chart Line Icon code?

Icon Code is - fas fa-chart-line.

⭐ What does the fas fa-chart-line Icon mean?

fas fa-chart-line is the Icon code of Font Awesome Chart Line.

⭐ Can we add fas fa-chart-line Icon in different sizes?

Yes, you can Icon of fas fa-chart-line in various pixels.

⭐ How to add a Blue color Font Awesome Chart Line Icon?

Add the blue color Chart Line icon of the font awesome by using code: fas fa-chart-line style='color: blue;'.

⭐ How to make white color icon of a Font Awesome Chart Line?

To change the Chart Line icon to white color use code: fas fa-chart-line style='color: white;'.

Advertisements



Advertisements



Looking For More Icons?