- Issue created by @hungdo
- πΊπΈUnited States andileco
This feature has been in place a long time and is still working. I think there's just a misconfiguration with your view. Please play around with your configurations a bit more or send a video or view export for support. Thank you!
- Status changed to Postponed: needs info
11 days ago 10:44pm 6 August 2025 - πΊπΈUnited States redeight
I'm also not able to figure out how to get the two charts to show up together. I've got the fields and display set the same for both of them, but the filter on the attachment is overridden to get different view results.
- πΊπΈUnited States andileco
Can one of you share which library you are using and what chart types you are wanting? Then I can make a video showing what to do.
- πΊπΈUnited States redeight
I've tried various combinations of line and area charts. Each chart works fine on its own in the preview β and on a page if I duplicate the display β regardless of chart type, but the chart attachment never shows up on the main chart. I'm using Chart.js, but i'm willing to switch if another worked.
- πΊπΈUnited States andileco
OK, I've added a video of how to make a chart with a chart attachment. Apologies for the lack of voice in the video. Let me outline the steps:
- Add a view of Charts Usage Statistics content type, with the initial display being a page.
- Add a field to hold the value (in this case, I choose "7.x")
- In the Format section, select a chart with "Title" as the label and "7.x" as the data provider.
- Preview to make sure it works
- Now add a "Chart attachment" display. I chose to "Clone as chart attachment" to save a little time.
- Configure your chart attachment as needed, remembering to select "This display" for everything, INCLUDING the format (the form where you select "Chart" versus "Table" or "Unformatted list). In my case, I added an "8.x" field and in the chart settings selected that as the data provider. I also used a column for this display instead of a line.
- Make sure you "Attach" your attachment to the Page display.
- Preview your attachment to make sure it works.
- Toggle to the Page display: you should see both your main chart and the chart attachment.
If you follow these directions and still have an issue, can you either post a video here like I did (I made this with Slack) or send me a DM (@andileco) on the Drupal Slack workspace?
- πΊπΈUnited States redeight
Could it be because I'm using aggregation on data fields, contextual filters, and custom fields as the grouping field?? I followed the steps shown in the video β very clear what you were doing even without the audio, thank you. And I still can't get the attachment in the same chart. If I duplicate the chart attachment and make it a regular attachment it works fine. I know the label field is the same between the two though the fields for the attachment are set to "this attachment" like you showed in the video. And the chart itself is also set to "this attachment". I'll shoot you a message via the drupal slack.