All docs
V19.2
24.1
The page you are viewing does not exist in version 24.1.
23.2
The page you are viewing does not exist in version 23.2.
23.1
The page you are viewing does not exist in version 23.1.
22.2
The page you are viewing does not exist in version 22.2.
22.1
The page you are viewing does not exist in version 22.1.
21.2
The page you are viewing does not exist in version 21.2.
21.1
The page you are viewing does not exist in version 21.1.
20.2
The page you are viewing does not exist in version 20.2.
20.1
The page you are viewing does not exist in version 20.1.
19.2
19.1
18.2
18.1
17.2
A newer version of this page is available. Switch to the current version.

DevExtreme jQuery - Title and Subtitle

Titles and subtitles are textual elements that provide an overview of what the Funnel visualizes.

Funnel Title and Subtitle

The title object configures the title; the title.subtitle object configures the subtitle.

jQuery
JavaScript
$(function() {
    $("#funnelContainer").dxFunnel({
        // ...
        title: {
            text: "I am the Title",
            subtitle: {
                text: "I am the Subtitle"
            }
        }
    });
});
Angular
HTML
TypeScript
<dx-funnel ... >
    <dxo-title
        text="I am the Title">
        <dxo-subtitle
            text="I am the Subtitle">
        </dxo-subtitle>
    </dxo-title>
</dx-funnel>
import { DxFunnelModule } from "devextreme-angular";
// ...
export class AppComponent {
    // ...
}
@NgModule({
    imports: [
        // ...
        DxFunnelModule
    ],
    // ...
})
Vue
App.vue
<template> 
    <DxFunnel ... >
        <DxTitle text="I am the Title">
            <DxSubtitle text="I am the Subtitle" />
        </DxTitle>
    </DxFunnel>
</template>

<script>
import DxFunnel, {
    DxTitle,
    DxSubtitle
} from 'devextreme-vue/funnel';

export default {
    components: {
        DxFunnel,
        DxTitle,
        DxSubtitle
    }
}
</script>
React
App.js
import React from 'react';
import Funnel, { Title, Subtitle } from 'devextreme-react/funnel';

class App extends React.Component {
    render() {
        return (
            <Funnel ... >
                <Title text="I am the Title">
                    <Subtitle text="I am the Subtitle" />
                </Title>
            </Funnel>
        );
    }
}

export default App;

View Demo

You can set the title's text more concisely by assigning it directly to the title option. This is useful if you are satisfied with the title's default settings and do not need a subtitle.

jQuery
JavaScript
$(function() {
    $("#funnelContainer").dxFunnel({
        // ...
        title: "I am the Title"
    });
});
Angular
HTML
TypeScript
<dx-funnel ...
    text="I am the Title">
</dx-funnel>
import { DxFunnelModule } from "devextreme-angular";
// ...
export class AppComponent {
    // ...
}
@NgModule({
    imports: [
        // ...
        DxFunnelModule
    ],
    // ...
})
Vue
App.vue
<template> 
    <DxFunnel title="I am the Title" />
</template>

<script>
import DxFunnel from 'devextreme-vue/funnel';

export default {
    components: {
        DxFunnel
    }
}
</script>
React
App.js
import React from 'react';
import Funnel from 'devextreme-react/funnel';

class App extends React.Component {
    render() {
        return (
            <Funnel title="I am the Title" />
        );
    }
}

export default App;

Refer to the API reference's title section for information about all the title and subtitle options.

See Also